+ add value_bool support in not_equals
This commit is contained in:
parent
c8630696d4
commit
4a60bc7be5
1 changed files with 20 additions and 1 deletions
|
@ -130,7 +130,6 @@ struct equals
|
|||
template <typename T, typename U>
|
||||
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;
|
||||
}
|
||||
};
|
||||
|
@ -155,11 +154,31 @@ struct not_equals
|
|||
return lhs != rhs;
|
||||
}
|
||||
|
||||
bool operator() (value_bool lhs, value_double rhs) const
|
||||
{
|
||||
return lhs != rhs;
|
||||
}
|
||||
|
||||
bool operator() (value_double lhs, value_integer rhs) const
|
||||
{
|
||||
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,
|
||||
value_unicode_string const& rhs) const
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue