CMake/Tests/CompileFeatures/cxx_explicit_conversions.cpp

11 lines
89 B
C++

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