workaround msvs variant init bug

This commit is contained in:
Dane Springmeyer 2014-08-31 12:44:12 -07:00
parent 79c6ab46a5
commit be44b647fa

View file

@ -814,7 +814,9 @@ public:
template <typename T>
value ( T const& val)
: base_(typename detail::mapnik_value_type<T>::type(val)) {}
: base_() {
base_ = static_cast<typename detail::mapnik_value_type<T>::type>(val);
}
value (value const& other)
: base_(other.base_) {}