summaryrefslogtreecommitdiff
path: root/modules/core
diff options
context:
space:
mode:
Diffstat (limited to 'modules/core')
-rw-r--r--modules/core/c++/error.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/core/c++/error.hpp b/modules/core/c++/error.hpp
index 7a5dd8a..f8c3a40 100644
--- a/modules/core/c++/error.hpp
+++ b/modules/core/c++/error.hpp
@@ -270,11 +270,11 @@ private:
"Don't use internal private types");
public:
- error_or():value_or_error_{fix_void<T>{}}{}
+ error_or():value_or_error_{make_error<err::invalid_state>("Default assignement for error_or constructor.")}{}
error_or(const fix_void<T> &value) : value_or_error_{value} {}
error_or(fix_void<T> &&value) : value_or_error_{std::move(value)} {}
-
+
error_or(const error &error) : value_or_error_{error} {}
error_or(error &&error) : value_or_error_{std::move(error)} {}