Skip to content

Commit

Permalink
reactive mixin: template keyword for g++ although not necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
skypjack committed Sep 20, 2024
1 parent 9fafb83 commit f513524
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/entt/entity/mixin.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ class basic_reactive_mixin final: public Type {
*/
template<typename Clazz, auto Candidate = &basic_reactive_mixin::emplace_element>
void on_construct(const id_type id = type_hash<Clazz>::value()) {
owner_or_assert().storage<Clazz>(id).on_construct().template connect<Candidate>(*this);
owner_or_assert().template storage<Clazz>(id).on_construct().template connect<Candidate>(*this);
}

/**
Expand All @@ -466,7 +466,7 @@ class basic_reactive_mixin final: public Type {
*/
template<typename Clazz, auto Candidate = &basic_reactive_mixin::emplace_element>
void on_update(const id_type id = type_hash<Clazz>::value()) {
owner_or_assert().storage<Clazz>(id).on_update().template connect<Candidate>(*this);
owner_or_assert().template storage<Clazz>(id).on_update().template connect<Candidate>(*this);
}

/**
Expand All @@ -477,7 +477,7 @@ class basic_reactive_mixin final: public Type {
*/
template<typename Clazz, auto Candidate = &basic_reactive_mixin::emplace_element>
void on_destroy(const id_type id = type_hash<Clazz>::value()) {
owner_or_assert().storage<Clazz>(id).on_destroy().template connect<Candidate>(*this);
owner_or_assert().template storage<Clazz>(id).on_destroy().template connect<Candidate>(*this);
}

/**
Expand Down

0 comments on commit f513524

Please sign in to comment.