add ```template <typename T>

transform_node(boost::value_initialized<T> const&)
          : base_() {}
``` to address

```c:\mb\windows-builds-64\packages\mapnik-windows\include\mapnik/transform_expression.hpp(175):
error C2664: 'mapbox::util::variant<mapnik::identity_node,mapnik::matrix_node,mapnik::translate_node,mapnik::scale_node,mapnik::rotate_node,mapnik::skewX_node,mapnik::skewY_node>::variant(mapbox::util::variant<mapnik::identity_node,mapnik::matrix_node,mapnik::translate_node,mapnik::scale_node,mapnik::rotate_node,mapnik::skewX_node,mapnik::skewY_node> &&) noexcept(false)':
cannot convert argument 1 from 'const boost::value_initialized<T>' to 'mapbox::util::no_init' [c:\mb\windows-builds-64\packages\mapnik-windows\mapnik-gyp\build\mapnik.vcxproj]
```
when building with VS2017 RC
This commit is contained in:
artemp 2017-01-03 11:24:32 +01:00
parent d5405d55c7
commit b3c4aff2c7

View file

@ -38,6 +38,8 @@
#include <boost/fusion/include/vector.hpp>
#pragma GCC diagnostic pop
//
#include <boost/utility/value_init.hpp>
// stl
#include <vector>
#include <memory>
@ -170,6 +172,10 @@ struct transform_node
transform_node()
: base_() {}
template <typename T>
transform_node(boost::value_initialized<T> const&)
: base_() {}
template <typename T>
transform_node(T const& val)
: base_(val) {}