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
Originally Posted by laserlight
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
or use an alias as in
using namespace boost::filesystem;
and then prefix each reference to a filesystem function with "fs::".
fs = namespace boost::filesystem
PPPS: Sorry to be so dense about the C vs. C++ point.