[core] Use experimental optional instead of mapbox::util::optional

This commit is contained in:
John Firebaugh
2016-01-19 14:47:58 -08:00
parent 48cced9e31
commit 9b62661b07
30 changed files with 87 additions and 80 deletions

View File

@@ -18,12 +18,12 @@ public:
, type(type_)
{}
mapbox::util::optional<Value> getValue(const std::string &key) const {
optional<Value> getValue(const std::string &key) const {
if (key == "$type")
return Value(uint64_t(type));
auto it = properties.find(key);
if (it == properties.end())
return mapbox::util::optional<Value>();
return optional<Value>();
return it->second;
}