title: How to create "CArray<CArray<CString>>& results" in MFC?
body: <p>I'm an unable to create a 2D array in MFC as per the code  "CArray>&amp; results". 
  Code:</p>
  
  <pre><code>CArray&lt;CArray&lt;CString&gt;&gt; res;
  
      CArray&lt;CString&gt;strArray1;
  
      strArray1.Add(L"Ali");
      strArray1.Add(L"Ahmed");
      strArray1.Add(L"Mark");
  
      CArray&lt;CString&gt;strArray2;
  
      strArray2.Add(L"1");
      strArray2.Add(L"2");
      strArray2.Add(L"3");
  
  res.Add(strArray1);
  res.Add(strArray2);
  </code></pre>
  
  <p>Error after execution: 
  error C2248: 'CObject::operator =' : cannot access private member declared in class 'CObject'</p>
  
  <p>This should be done without overriding copy and equals method in CArray, instead is there any way where I wouldn't need those indirectly like some method of CArray that can be leveraged.</p>