diff options
Diffstat (limited to 'libadhocutil/plugins.impl.h')
-rw-r--r-- | libadhocutil/plugins.impl.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libadhocutil/plugins.impl.h b/libadhocutil/plugins.impl.h index 772d37a..90e3070 100644 --- a/libadhocutil/plugins.impl.h +++ b/libadhocutil/plugins.impl.h @@ -20,6 +20,8 @@ namespace AdHoc { const std::type_info & PluginOf<T>::type() const { + static_assert(std::is_reference_v<decltype(typeid(T))>); + // cppcheck-suppress returnTempReference; (typeid returns a reference) return typeid(T); } |