For some reason, code completion in netbeans cannot determine the return type of template functions. Take the following example ...
struct Test { int val; }; int main() { vector<Test> v; Test t = {10}; v.push_back(t); cout << v[0].val;
The code compiles and works fine, but what is annoying is that I get this error all over my code when using vectors. Also code completion does not work. When I type v [0]. there is not a single drop down list giving me the option to select val.
I use netbeans 7.4 along with 64-bit MinGW.
c ++ netbeans
chasep255
source share