From d2395cb939ff3222bb976cfdcef6dc773452bcab Mon Sep 17 00:00:00 2001 From: Christian Engwer <christi@dune-project.org> Date: Wed, 17 Oct 2012 22:18:36 +0000 Subject: [PATCH] remove keyword explicit for the bool cast of shared_ptr [[Imported from SVN: r7041]] --- dune/common/shared_ptr.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dune/common/shared_ptr.hh b/dune/common/shared_ptr.hh index 8ffc4f85b..e9349ae3a 100644 --- a/dune/common/shared_ptr.hh +++ b/dune/common/shared_ptr.hh @@ -113,7 +113,7 @@ namespace Dune } /** \brief Checks if shared_ptr manages an object, i.e. whether get() != 0. */ - explicit operator bool() const { + operator bool() const { return rep_ != 0 && rep_->rep_ != 0; } -- GitLab