Don't include boost/filesystem/v3/operations.hpp, use boost/filesystem/operations.hpp instead.
It is boost headers' job to deal with their internals.