+ add eq/neq operators value_null <--> T

This commit is contained in:
artemp 2014-05-12 10:12:09 +01:00 committed by Dane Springmeyer
parent 1f81ee09d4
commit 19bd20f8a6

View file

@ -53,12 +53,26 @@ struct value_null
return true;
}
template <typename T>
bool operator==(T const& other) const
{
boost::ignore_unused_variable_warning(other);
return false;
}
bool operator!=(value_null const& other) const
{
boost::ignore_unused_variable_warning(other);
return false;
}
template <typename T>
bool operator!=(T const& other) const
{
boost::ignore_unused_variable_warning(other);
return true;
}
template <typename T>
value_null operator+ (T const& other) const
{