Skip to content

Commit

Permalink
Fixed static function tripping up clang.
Browse files Browse the repository at this point in the history
  • Loading branch information
kgorking committed Feb 29, 2024
1 parent 2ec58d0 commit 12c4924
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/ecs/detail/type_list.h
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ namespace impl {
};

template <typename T, typename... Types>
static constexpr type_list<Types..., T>* add_type(type_list<Types...>*) ECS_NULLBODY
constexpr type_list<Types..., T>* add_type(type_list<Types...>*) ECS_NULLBODY

template <typename TL, typename T>
using add_type_t = std::remove_pointer_t<decltype(add_type<T>(static_cast<TL*>(nullptr)))>;
Expand Down
2 changes: 1 addition & 1 deletion include/ecs/ecs.ixx
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,7 @@ namespace impl {
};

template <typename T, typename... Types>
static constexpr type_list<Types..., T>* add_type(type_list<Types...>*) ECS_NULLBODY
constexpr type_list<Types..., T>* add_type(type_list<Types...>*) ECS_NULLBODY

template <typename TL, typename T>
using add_type_t = std::remove_pointer_t<decltype(add_type<T>(static_cast<TL*>(nullptr)))>;
Expand Down

0 comments on commit 12c4924

Please sign in to comment.