Add BOOST_SYSTEM_CONSTEXPR to operator bool

This commit is contained in:
Peter Dimov
2018-01-22 23:39:59 +02:00
parent 7b94454e7c
commit 35e3e22c7e

View File

@ -544,7 +544,7 @@ inline const error_category & generic_category() BOOST_SYSTEM_NOEXCEPT
#if !defined(BOOST_NO_CXX11_EXPLICIT_CONVERSION_OPERATORS) #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; 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) #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; return m_val != 0;
} }