diff options
Diffstat (limited to 'include/Result.hpp')
-rw-r--r-- | include/Result.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/Result.hpp b/include/Result.hpp index 3ee60e5..f755b15 100644 --- a/include/Result.hpp +++ b/include/Result.hpp @@ -28,7 +28,7 @@ namespace sibs bool isOk() const { return !error; } bool isErr() const { return error; } - const T& unwrap() const + T& unwrap() { assert(isOk()); return value; |