I'm using qtcreator (2.8.1) and there is some strange behaviour using smart pointer.
Have a look at this snippet:
class myclass {
public:
void test() {};
};
....
std::shared_ptr<myclass> foo(new myclass);
foo->test();
std::unique_ptr<myclass> bar(new myclass);
bar->test();
If I type "foo->", the code completion window pops up, but if I type "bar->" nothing happens.
Any ideas why code completion only works with shared_ptrs and not with unique_ptrs?
UPDATE: It might be important to know that I'm using QT Creator with CMake and add_definitions(-std=c++11).