mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
Fix explicit operator bool to be negated is<nil_t>()
This commit is contained in:
parent
af1f13d582
commit
089b075317
|
@ -47,7 +47,7 @@ public:
|
|||
}
|
||||
|
||||
explicit operator bool() const {
|
||||
return is<nil_t>();
|
||||
return !is<nil_t>();
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user