aboutsummaryrefslogtreecommitdiff
path: root/include/Result.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2017-12-14 15:22:06 +0100
committerdec05eba <dec05eba@protonmail.com>2017-12-14 15:22:12 +0100
commit28d6b571139998915bce147abb58617884431192 (patch)
tree1b79ab0b85973beac33d833db5bc9be472a4dedd /include/Result.hpp
parentc244361b8ae743bcb326b9a1a168f2fdcab491e8 (diff)
Add support for dynamic libraries (shared objects)
Diffstat (limited to 'include/Result.hpp')
-rw-r--r--include/Result.hpp2
1 files changed, 2 insertions, 0 deletions
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: