title: Visual C++ 2015 - attempting to reference a deleted function
body: <p>I am getting two errors when compiling code with VC++ 2015 that I did not get with VC++ 2013.  Here are the two snippets:</p>
  
  <pre><code>CArray&lt;CQualifiedFolderObject*, CQualifiedFolderObject*&gt; CQualifiedFolderObject::mQualifiedFolders =
           CArray&lt;CQualifiedFolderObject*, CQualifiedFolderObject*&gt;()
  </code></pre>
  
  <p>and</p>
  
  <pre><code>sProfileArray COesInterface::g_arrProfiles[] = {
      {FALSE, },
      {FALSE, },
      {FALSE, },
      {FALSE, },
      {FALSE, CStringArray()},    
  };
  </code></pre>
  
  <p>In both cases I get a C2280 <em>"attempting to reference a deleted function"</em> error.  In the first case it is for the <code>CArray</code> and in the second case it is for the <code>CStringArray</code>.</p>
  
  <p>I am relatively new to C++.  I'd like to understand why this compiles in 2013 and not 2015, and what I can do to fix the problem.</p>