Expect macro
This commit is contained in:
@ -596,6 +596,7 @@ template<typename T, typename... Args> inline SharedPtr<T> MakeUniqueProtected(A
|
|||||||
template<typename _expected_type, typename _unexpected_type>
|
template<typename _expected_type, typename _unexpected_type>
|
||||||
using Expected = tl::expected<_expected_type, _unexpected_type>;
|
using Expected = tl::expected<_expected_type, _unexpected_type>;
|
||||||
ALIAS_FUNCTION(MakeUnexpected, tl::make_unexpected);
|
ALIAS_FUNCTION(MakeUnexpected, tl::make_unexpected);
|
||||||
|
# define EXPECT(type) Expected<type, String>
|
||||||
|
|
||||||
using String = std::string;
|
using String = std::string;
|
||||||
using StringView = std::string_view;
|
using StringView = std::string_view;
|
||||||
|
|||||||
Reference in New Issue
Block a user