aboutsummaryrefslogtreecommitdiff
path: root/zencore/include
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2021-08-28 21:04:37 +0200
committerStefan Boberg <[email protected]>2021-08-28 21:04:37 +0200
commit8f5247af3cb26c4f42ced5a67ab1e5841d25462e (patch)
treedd126c7df529b44b4184f795efabd74b667cb958 /zencore/include
parentAdded WriteFile() overload which accepts a single IoBuffer (diff)
downloadzen-8f5247af3cb26c4f42ced5a67ab1e5841d25462e.tar.xz
zen-8f5247af3cb26c4f42ced5a67ab1e5841d25462e.zip
Made scope guard [[nodiscard]]
Diffstat (limited to 'zencore/include')
-rw-r--r--zencore/include/zencore/scopeguard.h2
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) {}