Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: cambalinho on December 25, 2018, 05:55:49 pm

Title: Code Blocks 17.12: why i don't get the vector structure list?
Post by: cambalinho on December 25, 2018, 05:55:49 pm
see these structure:
Code
struct FunctionList
    {
        string Name;
        string Return;
        vector<string> ParametersType;
    };
vector <FunctionList> FuncList;
when i do:
Code
FuncList[FunctionListIndex].
i only get these on list:
Code
_M_emplace_aux()
why i don't get the structure list?
(i'm sorry, but i don't know the name of that menu list)
Title: Re: Code Blocks 17.12: why i don't get the vector structure list?
Post by: oBFusCATed on December 25, 2018, 06:13:18 pm
Are you talking about the code completion popup list?
If yes, then probably our parser has failed to parse your code...
Title: Re: Code Blocks 17.12: why i don't get the vector structure list?
Post by: cambalinho on December 25, 2018, 06:13:44 pm
after more and more search, i found the 'solution'.
on my header file i added the:
Code
namespace std;
but now on cpp file...
on header file, maybe the list is showed.... but not on cpp... unless we add the same line.
after added the same line, the list is showed.. strange why these happens...
thanks for all
Title: Re: Code Blocks 17.12: why i don't get the vector structure list?
Post by: cambalinho on December 25, 2018, 06:15:13 pm
oBFusCATed yes the code completion popup list(but when we add the dot)
Title: Re: Code Blocks 17.12: why i don't get the vector structure list?
Post by: cambalinho on December 25, 2018, 08:45:28 pm
i did a mistake... it's:
Code
using namespace std;