OpenTrespasser / JurassicParkTrespasser

A git-based fork of the Jurassic Park: Trespasser source code.
98 stars 24 forks source link

Replace destroy with std::destroy_at #52

Closed meekee7 closed 4 years ago

meekee7 commented 4 years ago

The bundled STL had a destroy function in defalloc.h which called the destructor of an object. In C++17, std::destroy is for iterators, but std::destroy_at does the same thing as the the old destroy.