11 lines
89 B
C++
11 lines
89 B
C++
|
|
||
|
class A
|
||
|
{
|
||
|
int m_i;
|
||
|
public:
|
||
|
explicit operator bool()
|
||
|
{
|
||
|
return m_i != 0;
|
||
|
}
|
||
|
};
|