steinwurf / recycle

Simple resource pool for recycling resources in C++
BSD 3-Clause "New" or "Revised" License
63 stars 23 forks source link

recycle::unique_pool needs c++14 #21

Closed campisano closed 5 years ago

campisano commented 5 years ago

This may be not an issue, however the Readme states that

The library uses C++11

however recycle::unique_pool uses make_unique that is from c++14

Could the use of make_unique be replaced to an equivalent c++11 code?

mortenvp commented 5 years ago

Hi @campisano I would probably prefer to update the README to say C++14 instead. Are you using it in a C++11 context?

campisano commented 5 years ago

Yes, I can try a shortcut like defining a func e.g. https://stackoverflow.com/a/17903225 or switch to c++14 of course

mortenvp commented 5 years ago

I've updated the readme to reflect that C++14 is required: 0d1a24325ec9ffb02dbfec5996d2de2a93a9910f

Thanks for reporting :+1: