浏览代码

type_info: no fwd ref, no NOLINT

skypjack 1 月之前
父节点
当前提交
9905ed6cff
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      src/entt/core/type_info.hpp

+ 1 - 2
src/entt/core/type_info.hpp

@@ -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>>();
 }