From 02644aeed11677f797625d2bb35e012ad9c16caf Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Thu, 12 Jul 2012 16:38:13 -0700 Subject: [PATCH] add explicit bool operator to negate to silence msvc warnings - closes #1307 --- include/mapnik/value.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/mapnik/value.hpp b/include/mapnik/value.hpp index d325a3390..cfe807d7a 100644 --- a/include/mapnik/value.hpp +++ b/include/mapnik/value.hpp @@ -577,6 +577,11 @@ struct negate : public boost::static_visitor return val; } + value_type operator() (bool val) const + { + return val ? -1 : 0; + } + value_type operator() (UnicodeString const& ustr) const { UnicodeString inplace(ustr);