Drop explicit bool idiom

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

No files matched your search

+1 -2
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>