Boost logo

Boost Users :

Subject: [Boost-users] filesystem::copy_directory for filesystem3 in 1.46.1 missing?
From: Ákos Maróy (akos_at_[hidden])
Date: 2011-03-27 08:57:57


Hi,

I'm trying to use the fileystem::copy_directory() function, in boost
1.46.1, using v3 of the filesystem library. I see that I have to
reference this function by specifying the namespace boost::filesystem3
explicitly, instead of just boost::filesystem:

#include <boost/filsystem.hpp>

boost::filesystem::copy_directory(..) // does not compile

boost::filesystem3::copy_directory(..) // compiles fine

looking at boost/filystem/v3/operations.hpp, it seems that the
copy_directory and the copy function is not 'exported' into the
boost:filesystem namespace for some reason:

namespace boost
{
  namespace filesystem
  {
    using filesystem3::absolute;
    using filesystem3::block_file;
    using filesystem3::character_file;
// using filesystem3::copy;
    using filesystem3::copy_file;
    using filesystem3::copy_option;
    using filesystem3::copy_symlink;
...

I wonder if this is on purpose, or if this is some sort of omission...

Akos


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net