SFML community forums
Help => General => Topic started by: Anand on March 18, 2016, 01:34:35 pm
-
in visual studio 2015 unique pointers i.e. std::unique_ptr is not available. is there any alternative for it.
-
They are available even in 2012, what are you talking about?
-
Of course they're available. And I don't see how this is related to SFML in the slightest...
-
like everyone else has said, they are totally included.
have you done #include <memory> ?
-
Alternative is always Object* and take care of the delete by yourself.
I addition to what the others said: Is your compiler c++11 ready?
-
it's visual studio 2015, so yes, it is compatible. As someone else already said, smart pointers have been in visual c++ since vs2012.