diff options
| author | Stefan Boberg <[email protected]> | 2021-08-28 21:04:37 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2021-08-28 21:04:37 +0200 |
| commit | 8f5247af3cb26c4f42ced5a67ab1e5841d25462e (patch) | |
| tree | dd126c7df529b44b4184f795efabd74b667cb958 /zencore/include | |
| parent | Added WriteFile() overload which accepts a single IoBuffer (diff) | |
| download | zen-8f5247af3cb26c4f42ced5a67ab1e5841d25462e.tar.xz zen-8f5247af3cb26c4f42ced5a67ab1e5841d25462e.zip | |
Made scope guard [[nodiscard]]
Diffstat (limited to 'zencore/include')
| -rw-r--r-- | zencore/include/zencore/scopeguard.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zencore/include/zencore/scopeguard.h b/zencore/include/zencore/scopeguard.h index ba8cd3094..00836f181 100644 --- a/zencore/include/zencore/scopeguard.h +++ b/zencore/include/zencore/scopeguard.h @@ -6,7 +6,7 @@ namespace zen { template<typename T> -class ScopeGuardImpl +class [[nodiscard]] ScopeGuardImpl { public: inline ScopeGuardImpl(T&& func) : m_guardFunc(func) {} |