From da9f79c494cb389329628e6d3cb78218e7c72944 Mon Sep 17 00:00:00 2001 From: Artem Pavlenko Date: Mon, 16 Feb 2009 15:47:18 +0000 Subject: [PATCH] + add specialisations for bool + small fix --- include/mapnik/value.hpp | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/include/mapnik/value.hpp b/include/mapnik/value.hpp index 73e730787..91cbd7d46 100644 --- a/include/mapnik/value.hpp +++ b/include/mapnik/value.hpp @@ -294,11 +294,10 @@ namespace mapnik { return lhs <= rhs; } - template 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);