MCPcopy Create free account
hub / github.com/PX4/eigen / Foo

Method Foo

test/ctorleak.cpp:11–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9 int dummy;
10
11 Foo()
12 {
13#ifdef EIGEN_EXCEPTIONS
14 // TODO: Is this the correct way to handle this?
15 if (Foo::object_count > Foo::object_limit) { std::cout << "\nThrow!\n"; throw Foo::Fail(); }
16#endif
17 std::cout << '+';
18 ++Foo::object_count;
19 }
20
21 ~Foo()
22 {

Callers

nothing calls this directly

Calls 1

FailClass · 0.85

Tested by

no test coverage detected