CMake/Tests/CompileFeatures/cxx_explicit_conversions.cpp

11 lines
89 B
C++
Raw Normal View History

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