mirror of
https://github.com/boostorg/optional.git
synced 2026-07-21 13:43:39 +00:00
Fix C&P issue int test of bool-likes in optional
This was likely an omission by copying `MyBool`
This commit is contained in:
@@ -27,7 +27,7 @@ struct MyBool
|
||||
struct MyExplicitBool
|
||||
{
|
||||
bool b;
|
||||
MyExplicitBool (bool b) : b(b) {}
|
||||
explicit MyExplicitBool (bool b) : b(b) {}
|
||||
operator bool() const { return b; };
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user