cpp-common/bt2: make `{OptionalBorrowedObject,SharedObject}::operator bool` explicit
[babeltrace.git] / src / cpp-common / bt2 / shared-object.hpp
index 124cff48b49086ce16ede66647eecfdfa01a694b..1f68906caceca1c4363af065e125d69bc3959ae0 100644 (file)
@@ -241,7 +241,7 @@ public:
         return _mObj.operator->();
     }
 
-    operator bool() const noexcept
+    explicit operator bool() const noexcept
     {
         return _mObj.hasObject();
     }
This page took 0.036118 seconds and 4 git commands to generate.