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

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