fixing clang build (#38)

This commit is contained in:
Paolo Monteverde
2018-02-08 14:56:07 +01:00
committed by Michele Caini
parent 3ebc75af80
commit 59cec88a28

View File

@@ -516,7 +516,7 @@ public:
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();
}