+ add eq/neq operators value_null <--> T
This commit is contained in:
parent
1f81ee09d4
commit
19bd20f8a6
1 changed files with 14 additions and 0 deletions
|
@ -53,12 +53,26 @@ struct value_null
|
||||||
return true;
|
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
|
bool operator!=(value_null const& other) const
|
||||||
{
|
{
|
||||||
boost::ignore_unused_variable_warning(other);
|
boost::ignore_unused_variable_warning(other);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
template <typename T>
|
||||||
|
bool operator!=(T const& other) const
|
||||||
|
{
|
||||||
|
boost::ignore_unused_variable_warning(other);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
value_null operator+ (T const& other) const
|
value_null operator+ (T const& other) const
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue