From 57d975bc4c9c3d76bce59ee7462a6e94487c7e82 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Thu, 21 Aug 2014 13:26:15 -0500 Subject: [PATCH] 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. --- source/base/parameter_handler.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")); } -- 2.39.5