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

This commit is contained in:
Peter Dimov
2022-09-26 21:20:40 +03:00
parent 53c00841fc
commit 52d7429473
4 changed files with 34 additions and 0 deletions
+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