I’m trying to port a Cinder app to OF on Mac and I’m having trouble with getting the compiler to compile a std::unique_ptr statement. I have the #include include statement, so I’m not sure what else I need to do.
The statement is like so:
The error I get is "No member named ‘unique_ptr’ in namespace ‘std’
OF doesn’t support c++11 yet - you may be able to use std::auto_ptr?
Thanks for your quick response!
I just found that’s the case here: https://github.com/openframeworks/openFrameworks/issues/2335
Unfortunately I can’t use auto_ptr because I was using the unique_ptr as elements in a vector and auto_ptr
doesn’t have a copy-constructor that the containers can access so I’ll have to find another way.
cool - in case you missed it at the bottom of the thread is the c++11 project if you are feeling bleeding edge
you can also use c++11 if you use llvm and set the compatibility of the project in the project settings to c++11. what doesn’t work right now is using libc++ but if you don’t enable that it should compile without problem