boost/libs/filesystem/test/issues/copy_file-compilation-error-2015-05-04.cpp
2021-10-05 21:37:46 +02:00

14 lines
400 B
C++

// Rob Conde <rob.conde@ai-solutions.com> reports this fails
// to compile for Boost 1.58 with g++ 4.4.7 but is OK with FC++ 2013
#include "boost/filesystem/operations.hpp"
void myFunc()
{
using namespace boost::filesystem;
copy_options opt(copy_options::overwrite_existing);
copy_file(path("p1"),path("p2"),copy_options::overwrite_existing);
// copy_file(path("p1"),path("p2"),opt);
}