aboutsummaryrefslogtreecommitdiff
path: root/zencore/include
diff options
context:
space:
mode:
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) {}