From a3b6fc149895a7f4c29acd6bba70546edec41438 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20K=C3=A4fer?= Date: Fri, 10 Aug 2018 10:22:38 -0400 Subject: [build] vendor std::expected polyfill --- include/mbgl/util/expected.hpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 include/mbgl/util/expected.hpp (limited to 'include') 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 +#pragma GCC diagnostic pop + +namespace mbgl { + +template +using expected = nonstd::expected; + +template +using unexpected = nonstd::unexpected_type; + +} // namespace mbgl -- cgit v1.2.1