summaryrefslogtreecommitdiffstats
path: root/Tests/CompileFeatures/cxx_explicit_conversions.cpp
blob: a34128f0d9b554fe9338630b539239372e6c577b (plain)
1
2
3
4
5
6
7
8

class A
{
  int m_i;

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