From be44b647faf8aa8cd4e6933495fbd7f40442bca3 Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Sun, 31 Aug 2014 12:44:12 -0700 Subject: [PATCH] workaround msvs variant init bug --- include/mapnik/value.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/mapnik/value.hpp b/include/mapnik/value.hpp index 3df89f45c..84ccad828 100644 --- a/include/mapnik/value.hpp +++ b/include/mapnik/value.hpp @@ -814,7 +814,9 @@ public: template value ( T const& val) - : base_(typename detail::mapnik_value_type::type(val)) {} + : base_() { + base_ = static_cast::type>(val); + } value (value const& other) : base_(other.base_) {}