I can't use unique_ptr?

Hi guys, i have Microsoft Visual C++ 2012 express edition, it supports several C++11 features such as enum classes, nullptr etc... but it doesn't seem to support the new smart pointers, so how do i install them onto my compiler? Thank you.
Did you #include <memory> ?
I have to #include <memory>? I did not know that, the tutorial I'm currently reading didn't mention a thing about #including a new header file in order to use smart pointer :/ oh well, thank you so much
Whenever you need to use something, you should google it and find in which header it lies into (Unless it's a language feature like auto, for, while...).

For unique_ptr:


Last edited on
Topic archived. No new replies allowed.