diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2016-01-19 14:47:58 -0800 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2016-01-19 17:56:48 -0800 |
commit | 9b62661b07e86fc1d64e308fde3e15527c1cd8c8 (patch) | |
tree | c27b37e3f94b53d4fdd5855d1eb68868ce803bae /include/mbgl/util/optional.hpp | |
parent | 48cced9e311d5c1cf2a98937eeaf638c94456c8d (diff) | |
download | qtlocation-mapboxgl-9b62661b07e86fc1d64e308fde3e15527c1cd8c8.tar.gz |
[core] Use experimental optional instead of mapbox::util::optional
Diffstat (limited to 'include/mbgl/util/optional.hpp')
-rw-r--r-- | include/mbgl/util/optional.hpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/mbgl/util/optional.hpp b/include/mbgl/util/optional.hpp new file mode 100644 index 0000000000..1063ba84a1 --- /dev/null +++ b/include/mbgl/util/optional.hpp @@ -0,0 +1,13 @@ +#ifndef MBGL_UTIL_OPTIONAL +#define MBGL_UTIL_OPTIONAL + +#include <experimental/optional> + +namespace mbgl { + +template <typename T> +using optional = std::experimental::optional<T>; + +} // namespace mbgl + +#endif |