Originally Posted by
laserlight
However, I note that Boost.Filesystem is a C++ library.
Wonderful. Please elaborate. That must be part of the "TR2" stuff which (for those of use who are not professional programmers) is a well-kept secret. For example, I tried
Code:
using std::tr2::sys;
in a sample program I found in the boost_filesystem online documentation, but got nowhere with that. I haven't found anything about it at cppreference.com or cplusplus.com. Would you please post any links to references for the Boost components that have been added to C++, including how to #include them and the correct namespace directives.
PS: It doesn't seem to be part of GCC 4.2. I had to explicitly install the boost-dev and boost-filesystem-dev packages to access these libraries.
PPS: I finally worked out that I could either use
Code:
using namespace boost::filesystem;
or use an alias as in
Code:
fs = namespace boost::filesystem
and then prefix each reference to a filesystem function with "fs::".
PPPS: Sorry to be so dense about the C vs. C++ point.