type_info: no fwd ref, no NOLINT

This commit is contained in:
skypjack
2026-03-19 18:33:12 +01:00
parent 6d6ba9b175
commit 9905ed6cff

View File

@@ -223,8 +223,7 @@ template<typename Type>
/*! @copydoc type_id */
template<typename Type>
// NOLINTNEXTLINE(cppcoreguidelines-missing-std-forward)
[[nodiscard]] const type_info &type_id(Type &&) noexcept {
[[nodiscard]] const type_info &type_id(const Type &) noexcept {
return type_id<std::remove_cvref_t<Type>>();
}