[libxml++] DomParser: Make operator bool() explicit



commit 5bf18a2f6c3f9f325e0c55392f2a1bf05840a48a
Author: Kjell Ahlstedt <kjell ahlstedt bredband net>
Date:   Thu Jan 7 09:54:47 2016 +0100

    DomParser: Make operator bool() explicit

 libxml++/parsers/domparser.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libxml++/parsers/domparser.h b/libxml++/parsers/domparser.h
index df7ea23..d40bce6 100644
--- a/libxml++/parsers/domparser.h
+++ b/libxml++/parsers/domparser.h
@@ -76,7 +76,7 @@ public:
 
   /** Test whether a document has been parsed.
    */
-  operator bool() const noexcept;
+  explicit operator bool() const noexcept;
 
   /** Get the parsed document.
    * @returns A pointer to the parsed document, or <tt>nullptr</tt>.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]