Skip to content

Commit d2661b5

Browse files
authored
Update flecs.h
1 parent 8452544 commit d2661b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

distr/flecs.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23923,7 +23923,7 @@ struct entity_view : public id {
2392323923
* @tparam First The first element of the pair.
2392423924
* @param constant the enum constant.
2392523925
*/
23926-
template<typename First, typename Second, if_t<is_enum<Second>::value> = 0>
23926+
template<typename First, typename Second, if_t< is_enum<Second>::value && !std::is_same<First, Second>::value > = 0>
2392723927
const First* get(Second constant) const {
2392823928
const auto& et = enum_type<Second>(this->world_);
2392923929
flecs::entity_t target = et.entity(constant);
@@ -24093,7 +24093,7 @@ struct entity_view : public id {
2409324093
* @tparam First The first element of the pair.
2409424094
* @param constant the enum constant.
2409524095
*/
24096-
template<typename First, typename Second, if_t<is_enum<Second>::value> = 0>
24096+
template<typename First, typename Second, if_t< is_enum<Second>::value && !std::is_same<First, Second>::value > = 0>
2409724097
First* get_mut(Second constant) const {
2409824098
const auto& et = enum_type<Second>(this->world_);
2409924099
flecs::entity_t target = et.entity(constant);

0 commit comments

Comments
 (0)