Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. enum Foo {
  2. BAR,
  3. BAZ
  4. };
  5.  
  6. Foo foo1 = BAR;
  7. Foo foo2 = foo1 && true;
  8. test.cc:7: error: cannot convert ‘bool’ to ‘Foo’ in initialization
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement