I have a struct which includes a CList which which I want to create a CMap with. However when I compile I get an error:
Error C2280
CRecipeNode::RECIPENODE::RECIPENODE(const CRecipeNode::RECIPENODE &): attempting to reference a deleted function
struct RECIPENODE {
CString name;
CList<CString> children;
};
typedef CMap<CString, LPCTSTR, RECIPENODE, RECIPENODE> CRecipeNodeMap;
CRecipeNodeMap nodeMap;
Any clues or advice would be welcomed.
I would like to use CList if at all possible, but if not I guess I will fall back on std::vector.