Details
-
Suggestion
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
Qt Creator 4.6.2, Qt Creator 4.7.0-beta1, Qt Creator 4.7.0-beta2, Qt Creator 12.0.0
-
None
-
Ubuntu Linux 18.04 with gcc 7.3
Description
Consider the following functions:
template <class T> auto func(std::vector<T>& v) { v. // No autocomplation. FIXED in v4.6 } template <class CharT> auto func(std::basic_string<CharT>& s) { s. // No autocomplation FIXED in v4.6 } template<class T> auto func2(std::vector<T>& v) { v. // OK auto-completion works since v4.6 std::vector<T> x; x. // OK std::vector<T>(). // OK auto y = std::vector<T>(); y. // OK, FIXED v.get_allocator(). // BAD, no auto-completion typename std::vector<T>::allocator_type al = v.get_allocator(); al. // BAD, no auto-completion }
The type is not fully known, but we are certain that the type is vector or basic_string, thus autocompletion is possible.