ATLAS Offline Software
copy_file_icc_hack.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef ATHENAMPTOOLS_CFIH
6 #define ATHENAMPTOOLS_CFIH 1
7 
8 //FIXME vile hack while icc fixes scoped enums used by boost::copy_file
9 #ifdef __INTEL_COMPILER
10  #include <cstdlib> /* system */
11  #define COPY_FILE_HACK(_src, _dest) \
12  {std::string _tpcpcommand("cp _src _dest"); system(_tpcpcommand.c_str()); }
13 #else
14  #include <filesystem>
15  #define COPY_FILE_HACK(_src, _dest) \
16  std::filesystem::copy_file(_src, _dest);
17 #endif
18 
19 #endif