Include a struct which include a CList in a CMap

98 Views Asked by At

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.

0

There are 0 best solutions below