Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. QT Creator can't complete the shared_ptr operator-> correctly, when use alias template.
Forum Updated to NodeBB v4.3 + New Features

QT Creator can't complete the shared_ptr operator-> correctly, when use alias template.

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
1 Posts 1 Posters 142 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • X Offline
    X Offline
    xukunlin
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved