diff options
Diffstat (limited to 'include/mbgl/util/expected.hpp')
-rw-r--r-- | include/mbgl/util/expected.hpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/mbgl/util/expected.hpp b/include/mbgl/util/expected.hpp new file mode 100644 index 0000000000..a45f071065 --- /dev/null +++ b/include/mbgl/util/expected.hpp @@ -0,0 +1,16 @@ +#pragma once + +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wshadow" +#include <expected.hpp> +#pragma GCC diagnostic pop + +namespace mbgl { + +template <class T, class E> +using expected = nonstd::expected<T, E>; + +template <class E> +using unexpected = nonstd::unexpected_type<E>; + +} // namespace mbgl |