I want to copy collection of structures from one vector to another vector in mfc.
My Vector Structure is
typedef vector<CLog *> CLogData;
typedef vector<CLog * > tLogData;
how to copy the TYPE CLog* from CLogData to tLogData?
Regards,
Karthik
If you want a shallow copy of the
CLog*pointers, use the answer MacGucky gave. If you need a deep copy of the actual data theCLog*pointers point to, you need to do it manually in a loop: