+ add specialisations for bool
+ small fix
This commit is contained in:
parent
3e51c02513
commit
da9f79c494
1 changed files with 12 additions and 2 deletions
|
@ -294,11 +294,10 @@ namespace mapnik {
|
|||
return lhs <= rhs;
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
bool operator()(UnicodeString const& lhs,
|
||||
UnicodeString const& rhs ) const
|
||||
{
|
||||
return lhs <= rhs;
|
||||
return lhs <= rhs;
|
||||
}
|
||||
|
||||
bool operator() (value_null, value_null) const
|
||||
|
@ -419,6 +418,11 @@ namespace mapnik {
|
|||
return lhs / rhs;
|
||||
}
|
||||
|
||||
value_type operator() (bool lhs, bool rhs ) const
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
value_type operator() (UnicodeString const& lhs,
|
||||
UnicodeString const&) const
|
||||
{
|
||||
|
@ -458,6 +462,12 @@ namespace mapnik {
|
|||
return lhs;
|
||||
}
|
||||
|
||||
value_type operator() (bool lhs,
|
||||
bool rhs) const
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
value_type operator() (double lhs, int rhs) const
|
||||
{
|
||||
return fmod(lhs, rhs);
|
||||
|
|
Loading…
Reference in a new issue