summaryrefslogtreecommitdiffstats
path: root/Tests/CompileFeatures/cxx_explicit_conversions.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/CompileFeatures/cxx_explicit_conversions.cpp')
-rw-r--r--Tests/CompileFeatures/cxx_explicit_conversions.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/Tests/CompileFeatures/cxx_explicit_conversions.cpp b/Tests/CompileFeatures/cxx_explicit_conversions.cpp
index 0decdcd..a34128f 100644
--- a/Tests/CompileFeatures/cxx_explicit_conversions.cpp
+++ b/Tests/CompileFeatures/cxx_explicit_conversions.cpp
@@ -2,9 +2,7 @@
class A
{
int m_i;
+
public:
- explicit operator bool()
- {
- return m_i != 0;
- }
+ explicit operator bool() { return m_i != 0; }
};