Use mapbox::util::optional instead of std::experimental::optional
This commit is contained in:
parent
8b866502d1
commit
41c31a2388
@ -8,7 +8,7 @@
|
|||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <unordered_map>
|
#include <unordered_map>
|
||||||
#include <experimental/optional>
|
#include <mapbox/optional.hpp>
|
||||||
|
|
||||||
namespace mapbox {
|
namespace mapbox {
|
||||||
namespace geometry {
|
namespace geometry {
|
||||||
@ -54,13 +54,13 @@ struct feature
|
|||||||
|
|
||||||
geometry_type geometry;
|
geometry_type geometry;
|
||||||
property_map properties {};
|
property_map properties {};
|
||||||
std::experimental::optional<identifier> id {};
|
mapbox::util::optional<identifier> id {};
|
||||||
|
|
||||||
// GCC 4.9 does not support C++14 aggregates with non-static data member
|
// GCC 4.9 does not support C++14 aggregates with non-static data member
|
||||||
// initializers.
|
// initializers.
|
||||||
feature(geometry_type geometry_,
|
feature(geometry_type geometry_,
|
||||||
property_map properties_ = property_map {},
|
property_map properties_ = property_map {},
|
||||||
std::experimental::optional<identifier> id_ = std::experimental::optional<identifier> {})
|
mapbox::util::optional<identifier> id_ = mapbox::util::optional<identifier> {})
|
||||||
: geometry(std::move(geometry_)),
|
: geometry(std::move(geometry_)),
|
||||||
properties(std::move(properties_)),
|
properties(std::move(properties_)),
|
||||||
id(std::move(id_)) {}
|
id(std::move(id_)) {}
|
||||||
|
Loading…
Reference in New Issue
Block a user