Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/andreasfertig/programming-with-cpp20
/ Adjust
Method
Adjust
06.14-bcdConstexpr/main.cpp:24–29 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
22
};
23
24
constexpr int BCD::Adjust(int v)
25
{
26
// Ok, not that sophisticated
27
if(v > 9 || v < 0) { return 0; }
28
return v;
29
}
30
31
int main()
32
{
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected