title: C++: Error with Boost Filesystem copy_file
body: <p>I'm running into some trouble with the copy_file function. My program is very simple, I'm just attempting to copy a text file from one spot to another.</p>
  
  <p>The following code brings up a "Debug Error!" because abort() was called.</p>
  
  <pre><code>int main()
  {
  path src_path = "C:\\src.txt";
  path dst_path = "C:\\dst.txt";
  
  cout &lt;&lt; "src exists = " &lt;&lt; exists( src_path ) &lt;&lt; endl;  // Prints True
  boost::filesystem::copy_file( src_path, dst_path );
  
  return 0;
  }
  </code></pre>
  
  <p>If I look at some other examples of code on Stackoverflow I cannot notice what I'm doing wrong. I feel like I'm missing something obvious here.</p>
  
  <p>I have Boost v1.47 installed and I'm using Visual C++ 2010.</p>