nfprojects / nfengine

Game engine
GNU General Public License v2.0
55 stars 4 forks source link

Common: Add MakeUniquePtr specialization for arrays #201

Closed mkulagowski closed 4 years ago

mkulagowski commented 4 years ago

Dodałem odpowiednik: std::unique_ptr<uint8[]> data = std::make_unique<uint8[]>(size); żeby nie trzeba było robić: std::unique_ptr<uint8[]> data(new uint8[size]);