소스 검색

meta: drop unnecessary static keywords

Michele Caini 1 년 전
부모
커밋
fe8d7d78c4
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/entt/meta/utility.hpp

+ 2 - 2
src/entt/meta/utility.hpp

@@ -248,7 +248,7 @@ template<typename Type, typename... Args, std::size_t... Index>
  * @return The meta type of the i-th element of the list of arguments.
  * @return The meta type of the i-th element of the list of arguments.
  */
  */
 template<typename Type>
 template<typename Type>
-[[nodiscard]] static meta_type meta_arg(const meta_ctx &ctx, const std::size_t index) noexcept {
+[[nodiscard]] meta_type meta_arg(const meta_ctx &ctx, const std::size_t index) noexcept {
     auto &&context = internal::meta_context::from(ctx);
     auto &&context = internal::meta_context::from(ctx);
     return {ctx, internal::meta_arg_node(context, Type{}, index)};
     return {ctx, internal::meta_arg_node(context, Type{}, index)};
 }
 }
@@ -260,7 +260,7 @@ template<typename Type>
  * @return The meta type of the i-th element of the list of arguments.
  * @return The meta type of the i-th element of the list of arguments.
  */
  */
 template<typename Type>
 template<typename Type>
-[[nodiscard]] static meta_type meta_arg(const std::size_t index) noexcept {
+[[nodiscard]] meta_type meta_arg(const std::size_t index) noexcept {
     return meta_arg<Type>(locator<meta_ctx>::value_or(), index);
     return meta_arg<Type>(locator<meta_ctx>::value_or(), index);
 }
 }