Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Lwhyz/workspace
/ safe_exec
Function
safe_exec
test/test_function.cc:50–56 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
48
49
template <typename T>
50
void safe_exec(T& e) {
51
try {
52
e();
53
} catch (std::exception& e) {
54
cout<<
"Got exception: "
<<e.what()<<endl;
55
}
56
}
57
58
void seperate() {
59
cout<<
"---------------------------------\n"
;
Callers
nothing calls this directly
Calls
1
what
Method · 0.80
Tested by
no test coverage detected