missing ';' when SOL_NO_EXCEPTIONS is enabled

This commit is contained in:
Anand Aiyer 2016-11-13 11:22:54 +05:30
parent 72af3c6264
commit 951b821272

View File

@ -636,7 +636,7 @@ namespace sol {
#ifdef SOL_NO_EXCEPTIONS
// we can abort here
// but the others are constexpr, so we can't...
: (std::abort(), *(T*)nullptr)
: (std::abort(), *(T*)nullptr);
#else
: (throw bad_optional_access("bad optional access"), contained_val());
#endif