18 lines
317 B
C++
18 lines
317 B
C++
#pragma once
|
|
|
|
#include <nonstd/expected.hpp>
|
|
|
|
namespace mapbox {
|
|
namespace base {
|
|
|
|
template <typename T, typename E>
|
|
using expected = nonstd::expected<T, E>;
|
|
|
|
template <typename E>
|
|
auto make_unexpected(E&& value) {
|
|
return nonstd::make_unexpected<E>(std::move(value));
|
|
}
|
|
|
|
} // namespace base
|
|
} // namespace mapbox
|