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