This is what I want:
#include <map>
using namespace std;
typedef map<int, string> map_t;
int main()
{
map_t m;
m.insert(1, "one");
map_t::iterator imap;
imap = m.find(1);
imap->second //which can not be auto completed
Anybody has good idea to solve this problem?
thanks!!
The parser is not finished, so it cannot parse advanced templates as the ones in the STL.
There is an ongoing effort to improve the Code Completion (CC) in a separate svn branch,
but I don't think that that version is capable of parsing the std::map
There are two solutions:
1. you do checkout the cc_refactoring branch and start improving the parser;
2. wait until, someone does 1;
p.s. I'm not a CB developer, so I may be wrong about the things I say.
Quote from: oBFusCATed on August 03, 2009, 04:21:14 PM
The parser is not finished, so it cannot parse advanced templates as the ones in the STL.
There is an ongoing effort to improve the Code Completion (CC) in a separate svn branch,
but I don't think that that version is capable of parsing the std::map
There are two solutions:
1. you do checkout the cc_refactoring branch and start improving the parser;
2. wait until, someone does 1;
p.s. I'm not a CB developer, so I may be wrong about the things I say.
As far as I know, at this time ,the parser can't solve the Op's problem. Parsing template is currently badly.
But I'm try to help a lot.
See the articles on:
http://wiki.codeblocks.org/index.php?title=Developer_documentation
Thank you for the help!