After completing the steps in this post, I managed to get Eclipse (Indigo) to recognize unique_ptr (and other new C ++ 11 stuff). The problem is that operator-> for unique_ptr does not seem to be supported in Eclipse. Here you have an example:
class Foo { void bar() { } }; std::unique_ptr<Foo> foo; (*foo).bar();
Case 1 works as expected: there are no errors or autocomplete. However, for case 2 Eclipse marks the instruction with an error ("Panel" Method "cannot be resolved"), as well as autocomplete from foo-> does not work.
The most interesting thing is that I have no problems with std::shared_ptr . This only happens for std::unique_ptr .
Has anyone had the same problem? Does anyone know a way to fix this?
EDIT: for clarification purposes only, the compilation process is suitable for the code snippet shown above. So, the problem is not in the compiler itself, but on Eclipse.
source share