Ultimaker / CuraEngine

Powerful, fast and robust engine for converting 3D models into g-code instructions for 3D printers. It is part of the larger open source project Cura.
https://ultimaker.com/en/products/cura-software
GNU Affero General Public License v3.0
1.66k stars 874 forks source link

Mac fixes prime tower #2112

Closed wawanbreton closed 5 days ago

wawanbreton commented 6 days ago

Fix build issue on MAC when using the emplace_back method

The XCode compiler seems to be stricter about structs default constructors, so we can't use emplace_back and the construct-in-place mechanism without manually declaring the constructors, which would be overkill in this case. We don't really need the provided performance improvement because those operations are not done thousands of times. Just use push_back with the explicit struct default constructor.