From 1d3e221a7a20bfd03517e3ae1e35e4a309a69b6a Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 10 Dec 2017 01:10:48 +0100 Subject: 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 --- include/Result.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/Result.hpp') 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; -- cgit v1.2.3