fixed errors with clang

This commit is contained in:
Michele Caini
2018-05-11 22:24:10 +02:00
parent 9a785ceb2e
commit e7da68547f

View File

@@ -704,7 +704,7 @@ public:
template<typename... Component>
std::enable_if_t<(sizeof...(Component) > 1), std::tuple<const Component &...>>
get(entity_type entity) const ENTT_NOEXCEPT {
return { get<Component>(entity)... };
return std::tuple<const Component &...>{get<Component>(entity)...};
}
/**
@@ -724,7 +724,7 @@ public:
template<typename... Component>
std::enable_if_t<(sizeof...(Component) > 1), std::tuple<Component &...>>
get(entity_type entity) ENTT_NOEXCEPT {
return { get<Component>(entity)... };
return std::tuple<Component &...>{get<Component>(entity)...};
}
/**