+ add specialisations for bool

+ small fix
This commit is contained in:
Artem Pavlenko 2009-02-16 15:47:18 +00:00
parent 3e51c02513
commit da9f79c494

View file

@ -294,7 +294,6 @@ namespace mapnik {
return lhs <= rhs;
}
template <typename T>
bool operator()(UnicodeString const& lhs,
UnicodeString const& rhs ) 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);