Drop explicit bool idiom

This commit is contained in:
Andrzej Krzemienski
2024-08-15 10:57:03 +02:00
parent 794e03af30
commit 6ec468aff6
3 changed files with 2 additions and 5 deletions

View File

@ -25,8 +25,7 @@ struct implicit_bool_conv
struct explicit_bool_conv
{
bool operator!() const BOOST_NOEXCEPT { return false; }
BOOST_EXPLICIT_OPERATOR_BOOL_NOEXCEPT()
explicit operator bool() const BOOST_NOEXCEPT { return true; }
};
template <typename To, typename From>