Given a POD struct Student,
struct Student {
std::string first;
std::string middle;
std::string last;
int id;
}
Student aaron = {"first", "middle", "list", 83924}; // notice we used "=" here
aaron. <---- auto-completion works here
Student aaron2 {"first", "middle", "last", 83842}; // In C++11 the "=" is redundant
aaron2. <---- auto-completion gives no completions here
If Student is modified to contain member methods (i.e. no longer a POD) then auto-completion works for the methods (but not other members) if the instance was initialized using the new "uniform initialization" syntax:
struct Student {
std::string first;
std::string middle;
std::string last;
int id;
std::string getFirst() const;
}
Student aaron3 {"first", "middle", "last", 1234};
aaron3. <--- getFirst() method is offered as a completion here, but not the other public members.
So basically uniform initialization of POD breaks auto completion from what I can see.