Reputation: 11
I want to store References to different Objects in a map, but I don't know how to define the map.
e.g:
map<string, & ObjectReferenceOfAnyKind> myList;
myList[ "keyA", stringA );
myList[ "keyBlist", vector );
myList[ "file", fileObject );
string &value = (string&) myList["keyA"];
CFile &fobj = (CFile&) myList["file"];
Any suggestion how to solve this?
Upvotes: 1
Views: 269