+ 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,7 +294,6 @@ namespace mapnik {
|
||||||
return lhs <= rhs;
|
return lhs <= rhs;
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename T>
|
|
||||||
bool operator()(UnicodeString const& lhs,
|
bool operator()(UnicodeString const& lhs,
|
||||||
UnicodeString const& rhs ) const
|
UnicodeString const& rhs ) const
|
||||||
{
|
{
|
||||||
|
@ -419,6 +418,11 @@ namespace mapnik {
|
||||||
return lhs / rhs;
|
return lhs / rhs;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
value_type operator() (bool lhs, bool rhs ) const
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
value_type operator() (UnicodeString const& lhs,
|
value_type operator() (UnicodeString const& lhs,
|
||||||
UnicodeString const&) const
|
UnicodeString const&) const
|
||||||
{
|
{
|
||||||
|
@ -458,6 +462,12 @@ namespace mapnik {
|
||||||
return lhs;
|
return lhs;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
value_type operator() (bool lhs,
|
||||||
|
bool rhs) const
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
value_type operator() (double lhs, int rhs) const
|
value_type operator() (double lhs, int rhs) const
|
||||||
{
|
{
|
||||||
return fmod(lhs, rhs);
|
return fmod(lhs, rhs);
|
||||||
|
|
Loading…
Reference in a new issue