use std::move
msvc : temp fix https://svn.boost.org/trac/boost/ticket/2839
This commit is contained in:
parent
f611892915
commit
ffc7a088a4
1 changed files with 6 additions and 2 deletions
|
@ -45,13 +45,17 @@ std::string get_image_filters(feature_type_style & style)
|
|||
void set_image_filters(feature_type_style & style, std::string const& filters)
|
||||
{
|
||||
std::vector<mapnik::filter::filter_type> new_filters;
|
||||
|
||||
bool result = parse_image_filters(filters, new_filters);
|
||||
if (!result)
|
||||
{
|
||||
throw mapnik::value_error("failed to parse image-filters: '" + filters + "'");
|
||||
}
|
||||
style.image_filters().swap(new_filters);
|
||||
#ifdef _WINDOWS
|
||||
style.image_filters() = new_filters;
|
||||
// FIXME : https://svn.boost.org/trac/boost/ticket/2839
|
||||
#else
|
||||
style.image_filters() = std::move(new_filters);
|
||||
#endif
|
||||
}
|
||||
|
||||
void export_style()
|
||||
|
|
Loading…
Add table
Reference in a new issue