aboutsummaryrefslogtreecommitdiff
path: root/include/Result.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2017-12-10 01:10:48 +0100
committerdec05eba <dec05eba@protonmail.com>2017-12-10 01:12:08 +0100
commit1d3e221a7a20bfd03517e3ae1e35e4a309a69b6a (patch)
treefdb38039d12cf38e9ac6102118727b78437cf3db /include/Result.hpp
parent2ed7d0b09caa872e44e2eb09b09b2387e93f9b34 (diff)
Add support for dependencies in global lib dir
Global lib dir is located at ~/.sibs/lib TODO: If global lib dir doesn't exist, download it from github/server
Diffstat (limited to 'include/Result.hpp')
-rw-r--r--include/Result.hpp2
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;