Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/boostorg/leaf
/ f1
Function
f1
example/error_log.cpp:61–68 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
59
int const failure_percent = 25;
60
61
leaf::result<void> f1()
62
{
63
ERROR_LOG;
64
if( (std::rand()%100) > failure_percent )
65
return { };
66
else
67
return leaf::new_error();
68
}
69
70
leaf::result<void> f2()
71
{
Callers
1
f2
Function · 0.70
Calls
1
new_error
Function · 0.85
Tested by
no test coverage detected