diff options
author | Hannah von Reth <hannah.vonreth@owncloud.com> | 2021-02-25 16:42:23 +0300 |
---|---|---|
committer | Matthieu Gallien <matthieu.gallien@nextcloud.com> | 2021-08-23 10:44:33 +0300 |
commit | 5b457a1663cfd6df63e6762ddc9a7d1a29200455 (patch) | |
tree | 24a563535abb444b31ab2444e6ee6ebf7975bdc7 /src/common | |
parent | 5a7fd3f316d0ccd974a6e5d07ff3f47e896c5277 (diff) |
Use byte array for etag
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/result.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/common/result.h b/src/common/result.h index 25129e875..77a9d121c 100644 --- a/src/common/result.h +++ b/src/common/result.h @@ -104,6 +104,7 @@ public: ASSERT(!_isError); return _result; } + T operator*() && { ASSERT(!_isError); @@ -116,6 +117,12 @@ public: return &_result; } + const T &get() const + { + ASSERT(!_isError) + return _result; + } + const Error &error() const & { ASSERT(_isError); |