mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
missing ';' when SOL_NO_EXCEPTIONS is enabled
This commit is contained in:
parent
72af3c6264
commit
951b821272
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user