From 35e3e22c7ef645fec86cec90715139626ec872bf Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Mon, 22 Jan 2018 23:39:59 +0200 Subject: [PATCH] Add BOOST_SYSTEM_CONSTEXPR to operator bool --- include/boost/system/error_code.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/system/error_code.hpp b/include/boost/system/error_code.hpp index 472a55b..57e7175 100644 --- a/include/boost/system/error_code.hpp +++ b/include/boost/system/error_code.hpp @@ -544,7 +544,7 @@ inline const error_category & generic_category() BOOST_SYSTEM_NOEXCEPT #if !defined(BOOST_NO_CXX11_EXPLICIT_CONVERSION_OPERATORS) - explicit operator bool() const BOOST_SYSTEM_NOEXCEPT // true if error + BOOST_SYSTEM_CONSTEXPR explicit operator bool() const BOOST_SYSTEM_NOEXCEPT // true if error { return m_val != 0; } @@ -654,7 +654,7 @@ inline const error_category & generic_category() BOOST_SYSTEM_NOEXCEPT #if !defined(BOOST_NO_CXX11_EXPLICIT_CONVERSION_OPERATORS) - explicit operator bool() const BOOST_SYSTEM_NOEXCEPT // true if error + BOOST_SYSTEM_CONSTEXPR explicit operator bool() const BOOST_SYSTEM_NOEXCEPT // true if error { return m_val != 0; }