CMake/Tests/CompileFeatures/cxx_explicit_conversions.cpp

9 lines
82 B
C++

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