I know there is no simple way of declaring variables dynamically in C++ but I'm looking for possible ways of passing in a vector to a function and somehow have the function declare new vectors based on names passed in to function.
I'm basically looking for tricks here...
I am very very far of from being an expert, but I am fairly sure one can't do this in C++ - could well be wrong though.
My reasons are that I am fairly sure it's not possible to create a new type name from a string using templates, even with template template parameters. I suspect that is also true with template meta programming (TMP) for the same reason.
Maybe there are some template or TMP wizards out there to prove me wrong - it would be cool if that was the case :+)
It is possible to do this with the D language though :+)
You guys..
I appreciate your comments :)
I was looking to avoid the map (in this case) but if there's no way to hack this limitation, I'll painfully rewrite my program and integrate maps.
Thanks.