martinmoene/optional-lite

Compilation is broken with exceptions disabled

viettrungluu opened this issue · 0 comments

Compilation is broken with exceptions disabled (for current HEAD of master).

I get

.../optional_lite/include/nonstd/optional.hpp:1662:22: error: 'nonstd::optional_lite::bad_optional_access' has not been declared
 using optional_lite::bad_optional_access;
                      ^

Presumably

using optional_lite::bad_optional_access;
should be gated on #if ! optional_CONFIG_NO_EXCEPTIONS.

I'd be happy to send a PR.