I'm trying to make the second parameter a default parameter that is the same as the first, or different if I want it to be different..
Why doesn't this work? And is there a way around it, other than by iterative overloads?
void LoadFile (std::string filename, std::string key=filename)
Oh, and yeah I guess I could say..
void LoadFile (std::string filename, std::string key="")
if (key = "") key = filename;
..but this doesn't seem very elegant.