http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48107
Summary: [C++0x] no explicit conversion from scoped enumeration type to bool Product: gcc Version: 4.4.5 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: r...@gcc.gnu.org 4.4, 4.5 and 4.6 all reject this code enum class E { }; void f(E e) { static_cast<bool>(e); } e.C:4: error: invalid operands of types ‘E’ and ‘int’ to binary ‘operator!=’