Skip to content

Commit c32ae1a

Browse files
authored
Update flecs.h
1 parent 6e8b571 commit c32ae1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

distr/flecs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25523,7 +25523,7 @@ struct entity_builder : entity_view {
2552325523
* @param constant The enum constant.
2552425524
* @param value The value to set.
2552525525
*/
25526-
template <typename First, typename Second, if_t< is_enum<Second>::value > = 0>
25526+
template <typename First, typename Second, if_t< is_enum<Second>::value && !std::is_same<First, Second>::value > = 0>
2552725527
const Self& set(Second constant, const First& value) const {
2552825528
const auto& et = enum_type<Second>(this->world_);
2552925529
flecs::entity_t second = et.entity(constant);

0 commit comments

Comments
 (0)