CMake/Tests/CompileFeatures/cxx_explicit_conversions.cpp
2014-04-08 11:05:55 +02:00

11 lines
89 B
C++

class A
{
int m_i;
public:
explicit operator bool()
{
return m_i != 0;
}
};