Skip to content

Commit

Permalink
fixing clang build (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
morbo84 authored and skypjack committed Feb 8, 2018
1 parent 3ebc75a commit 59cec88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/entt/entity/sparse_set.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ class SparseSet<Entity, Type>: public SparseSet<Entity> {
object_type & construct(entity_type entity, Args&&... args) {
underlying_type::construct(entity);
// emplace_back doesn't work well with PODs because of its placement new
instances.push_back({ std::forward<Args>(args)... });
instances.push_back(object_type{ std::forward<Args>(args)... });
return instances.back();
}

Expand Down

0 comments on commit 59cec88

Please sign in to comment.