| 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 | { |