MCPcopy 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
49template <typename T>
50void safe_exec(T& e) {
51 try {
52 e();
53 } catch (std::exception& e) {
54 cout<<"Got exception: "<<e.what()<<endl;
55 }
56}
57
58void seperate() {
59 cout<<"---------------------------------\n";

Callers

nothing calls this directly

Calls 1

whatMethod · 0.80

Tested by

no test coverage detected