Add in_place_value, in_place_error to result<>. Refs #93.

This commit is contained in:
Peter Dimov committed 2022-09-27 18:18:16 +03:00
1 parent 52d7429473
commit 20ce51858b
5 files changed
+289

No files matched your search

+6
View File
@@ -100,6 +100,9 @@ public:
using value_type = T;
using error_type = E;
static constexpr in_place_value_t in_place_value{};
static constexpr in_place_error_t in_place_error{};
public:
// constructors
@@ -454,6 +457,9 @@ public:
using value_type = void;
using error_type = E;
static constexpr in_place_value_t in_place_value{};
static constexpr in_place_error_t in_place_error{};
public:
// constructors