Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- enum Foo {
- BAR,
- BAZ
- };
- Foo foo1 = BAR;
- Foo foo2 = foo1 && true;
- test.cc:7: error: cannot convert ‘bool’ to ‘Foo’ in initialization
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement