shared_ptr on Android

Hi there,

I'm trying to use shared_ptr but on android doesn't compile. Any idea how to make it work?

Thanks!

It's there, but if I remember correctly, it's under the tr1 stuff on Android.  So, it would be:

#include <tr1/memory>

std::tr1::shared_ptr<MyClass> ptr(new MyClass);

I fixed the issue... I'm using unity builds and I was putting in the cpp the include, so after moving it to the unity build header everything worked fine :)

I'm using #include <memory> only

Thanks!!