QT Creator can't complete the shared_ptr operator-> correctly, when use alias template.
Unsolved
Qt Creator and other tools
-
when i set shared_ptr alias like that:
template <typename T> using SharedPtr = std::shared<T>;
then,
qt creator can't complate and prompt type T's function and member, eg:struct Test{ void sayHi() { } }; SharedPtr<Test> ptr;
when i input "ptr->" in qt creator, i can't get any prompt or auto complate.
qt creator version 4.10.0.
how can we solve this problem? or the other version also have this problem?