Add value_type, error_type typedefs to result. Refs #93.

This commit is contained in:
Peter Dimov committed 2022-09-26 21:20:40 +03:00
1 parent 53c00841fc
commit 52d7429473
4 files changed
+34

No files matched your search

+10
View File
@@ -95,6 +95,11 @@ private:
variant2::variant<T, E> v_;
public:
using value_type = T;
using error_type = E;
public:
// constructors
@@ -444,6 +449,11 @@ private:
variant2::variant<variant2::monostate, E> v_;
public:
using value_type = void;
using error_type = E;
public:
// constructors