+ add value_bool support in not_equals

This commit is contained in:
artemp 2013-05-31 18:51:11 +01:00
parent c8630696d4
commit 4a60bc7be5

View file

@ -130,7 +130,6 @@ struct equals
template <typename T, typename U> template <typename T, typename U>
bool operator() (T const& lhs, U const& rhs) const bool operator() (T const& lhs, U const& rhs) const
{ {
//return equals_helper<T, U, typename boost::is_convertible<T,U>::value_type >::result(lhs,rhs);
return false; return false;
} }
}; };
@ -155,11 +154,31 @@ struct not_equals
return lhs != rhs; return lhs != rhs;
} }
bool operator() (value_bool lhs, value_double rhs) const
{
return lhs != rhs;
}
bool operator() (value_double lhs, value_integer rhs) const bool operator() (value_double lhs, value_integer rhs) const
{ {
return lhs != rhs; return lhs != rhs;
} }
bool operator() (value_bool lhs, value_integer rhs) const
{
return lhs != rhs;
}
bool operator() (value_integer lhs, value_bool rhs) const
{
return lhs != rhs;
}
bool operator() (value_double lhs, value_bool rhs) const
{
return lhs != rhs;
}
bool operator() (value_unicode_string const& lhs, bool operator() (value_unicode_string const& lhs,
value_unicode_string const& rhs) const value_unicode_string const& rhs) const
{ {