From 28d6b571139998915bce147abb58617884431192 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 14 Dec 2017 15:22:06 +0100 Subject: Add support for dynamic libraries (shared objects) --- include/Result.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/Result.hpp') diff --git a/include/Result.hpp b/include/Result.hpp index eb0aa01..e8f4d12 100644 --- a/include/Result.hpp +++ b/include/Result.hpp @@ -53,6 +53,8 @@ namespace sibs { return errorCode; } + + operator bool () { return isOk(); } private: Result(const T &_value = T()) : value(_value) {} private: -- cgit v1.2.3