I am encountering an issue when passing a map to one of my functions in C++. When running the code described below, I do not get a compile-time error but I do see a suspiciously long redirect statement from GDB https://imgur.com/o1YKl62
Here are high-level breakdowns of my code:
main.cpp
printStuff(map <string, vector<string> > Amap, (char) *argv[2]);
printStuff
void printStuff(map <string, vector<string> > Amap, char lett) {
switch(lett) {
//blah blah blah
}
}
The function doesn't even get to the switch statement in GDB. After stepping into the initial call to printSomething, I get the statement above. The function then quits entirely out of printSomething, back to the main and onward from there.
Aucun commentaire:
Enregistrer un commentaire