maniacbug / StandardCplusplus

Standard C++ for Arduino (port of uClibc++)
588 stars 182 forks source link

logic_error #30

Closed xavier2910 closed 1 year ago

xavier2910 commented 3 years ago

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.

maniacbug commented 1 year ago

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!