map<int ,UserControlInfo>* RSUserControlContainer::GetAnswers()
{
//UserControlInfo is a structure
map<int, AnswerType> mapAnswers = new map<int, AnswerType>;
return mapAnswers ;
}
The compiler is probably complaining about returning an AnswerType map when the function's return type specifies a UserControlInfo map.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne