With new compilers and boost 1.5.3, since that version adds an
"explicit operator bool()" to the smart pointer classes, if
the compiler supports it.
Change-Id: I31862314479990adc8333e834dd16cbddbfcc387
}
//! Returns true if the value comes from expression evaluation.
- bool hasExpressionValue() const { return expr; }
+ bool hasExpressionValue() const { return static_cast<bool>(expr); }
//! Returns the string value (\a type must be ::STR_VALUE).
const std::string &stringValue() const
explicit ErrorMessage(const std::string &text);
//! Whether this object is a context string.
- bool isContext() const { return child_; }
+ bool isContext() const { return static_cast<bool>(child_); }
//! Returns the text for this object.
const std::string &text() const { return text_; }
/*! \brief