summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMurray Cumming <murrayc@murrayc.com>2016-04-10 14:26:08 +0200
committerMurray Cumming <murrayc@murrayc.com>2016-04-10 14:26:11 +0200
commit6bb912fc4845bd9b342a5a7555c4074acd3abd22 (patch)
treeb0a86a4c240b651a935c4d7a7872e4b091872030
parentd5dda4daa8dbf4fec6e420d54f67669264827e30 (diff)
C++11: RefPtr: Make operator bool explicit.
See https://bugzilla.gnome.org/show_bug.cgi?id=626858#c4
-rw-r--r--cairomm/refptr.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/cairomm/refptr.h b/cairomm/refptr.h
index 57cff74..eb458f2 100644
--- a/cairomm/refptr.h
+++ b/cairomm/refptr.h
@@ -140,7 +140,7 @@ public:
* do_something();
* @endcode
*/
- inline operator bool() const noexcept;
+ inline explicit operator bool() const noexcept;
/// Set underlying instance to 0, decrementing reference count of existing instance appropriately.
inline void clear() noexcept;