maniacbug/StandardCplusplus

logic_error

xavier2910 opened this issue · 1 comments

When I try to throw a logic_error, I am given an error saying: namespace "std" has no member "logic_error". I have included the stdexcept header.

This is because exception handling is disabled by default.

See system_configuration.h:

#undef __UCLIBCXX_EXCEPTION_SUPPORT__

You can #define that if you really want to tangle with exceptions. Be careful, though!