From: Wolfgang Bangerth Date: Thu, 21 Aug 2014 18:26:15 +0000 (-0500) Subject: Use an explicit cast when need a bool from optional<...>. source/base/parameter_handl... X-Git-Tag: v8.2.0-rc1~187^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=57d975bc4c9c3d76bce59ee7462a6e94487c7e82;p=dealii.git Use an explicit cast when need a bool from optional<...>. source/base/parameter_handler.cc The implicit cast was previously allowed, but newer versions of BOOST together with C++11 mark the cast as 'explicit', and it fails in the current context. --- diff --git a/source/base/parameter_handler.cc b/source/base/parameter_handler.cc index a81e36349b..4f5f4e35a2 100644 --- a/source/base/parameter_handler.cc +++ b/source/base/parameter_handler.cc @@ -1275,7 +1275,7 @@ ParameterHandler::demangle (const std::string &s) bool ParameterHandler::is_parameter_node (const boost::property_tree::ptree &p) { - return (p.get_optional("value")); + return static_cast(p.get_optional("value")); }