copy_file-compilation-error-2015-05-04.cpp 399 B

1234567891011121314
  1. // Rob Conde <rob.conde@ai-solutions.com> reports this fails
  2. // to compile for Boost 1.58 with g++ 4.4.7 but is OK with FC++ 2013
  3. #include "boost/filesystem/operations.hpp"
  4. void myFunc()
  5. {
  6. using namespace boost::filesystem;
  7. copy_option opt(copy_option::overwrite_if_exists);
  8. copy_file(path("p1"),path("p2"),copy_option::overwrite_if_exists);
  9. // copy_file(path("p1"),path("p2"),opt);
  10. }