bool: avoid implicit casts to bool in tribool

This commit is contained in:
Danny Robson 2022-06-13 15:37:24 +10:00
parent 2c304f2c0b
commit 680e67eb77

View File

@ -35,6 +35,11 @@ namespace cruft {
: tribool (nullptr)
{ ; }
// Try to avoid implicit casts to bool in the constructor.
template <typename ValueT>
constexpr tribool (ValueT&&) = delete;
/// Return true if the object contains a concrete value
constexpr bool has (void) const
{