I'm writing some C++ code with eclipe.
I have a strange behavior with vector objects.
When I use the method resize
for example, Eclipse returns the following error:
#include "vector"
...
vector<int> a;
a.resize(5);
Error: Invalid arguments candidates are: void resize(?, int).
However the code compiles from command line.
How can I fix this fastidious behavior of eclipse?
After quite a while searching and tinkering with settings, I think I have found an answer. To get the indexer parsing the code correctly I had to:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With