This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
TestCase (required C++11, but if replace using vector = to typedefs, behaviour is same): #include <list> #include <vector> #include <cstdlib> template <typename T> struct VectorHolder { using vector = ::std::list<T>; }; template <> struct VectorHolder<double> { using vector = ::std::vector<double>; }; template <typename T> using Vector = typename VectorHolder<T>::vector; /* * */ int main(int argc, char** argv) { Vector<int> intVec; Vector<double> doubleVec; intVec. // Here methods of ::std::list resolves properly doubleVec. // Here NB cannot properly resolve ::std::vector methods return 0; } See screenshots.
Created attachment 146627 [details] Properly behavior with Vector<int>.
Created attachment 146628 [details] Unproperly behavior with Vector<double>.
This could be related with the problem from bug 243594, so, please, check it in dev version (last fix probably should be in 2014-04-09 version).
I suppose it works in dev version.