aboutsummaryrefslogtreecommitdiff
path: root/examples/basic/src/interfaces/weapon.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/basic/src/interfaces/weapon.hpp')
-rw-r--r--examples/basic/src/interfaces/weapon.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/basic/src/interfaces/weapon.hpp b/examples/basic/src/interfaces/weapon.hpp
index 7404115..78e4f42 100644
--- a/examples/basic/src/interfaces/weapon.hpp
+++ b/examples/basic/src/interfaces/weapon.hpp
@@ -1,9 +1,10 @@
#pragma once
+// NOLINTNEXTLINE(cppcoreguidelines-special-member-functions)
class IWeapon
{
public:
virtual ~IWeapon() noexcept = default;
- virtual int get_strength() const noexcept = 0;
+ [[nodiscard]] virtual auto get_strength() const noexcept -> int = 0;
};