Boost logo

Boost :

From: Beman Dawes (bdawes_at_[hidden])
Date: 2003-06-10 20:05:36


Yes, you're right as far as 1.30.0 goes. The problem has been fixed in the
Boost CVS, however, so you can get an update there.

--Beman

At 06:27 PM 6/10/2003, Benjamin Dauvergne wrote:
>Try to compile with(this is on a debian):
>
>g++ test-fs-boost.cc -o test-fs-boost /usr/lib/libboost_filesystem.a
>
>-= test-fs-boost.cc =-
>#include <iostream>
>#include <boost/filesystem/exception.hpp>
>#include <boost/filesystem/operations.hpp>
>#include <boost/filesystem/path.hpp>
>
>namespace fs = boost::filesystem;
>
>int main(int argc, char *argv[]) {
> fs::path home("/home/coin"); // it doesn't exist
>
> try {
> if (fs::is_directory(home)) {
> std::cout << home.string() << " is a directory";
> } else {
> std::cout << home.string() << " isn't a
>directory";
> }
> } catch(fs::filesystem_error &e) {
> std::cout << "Error send by " << e.who();
> exit(-1);
> }
> exit(0);
>}
>-=-
>
>There isn't an implementation in exception.cpp neither in filesystem/
>exception.hpp.
>
>Merci
>_______________________________________________
>Unsubscribe & other changes:
>http://lists.boost.org/mailman/listinfo.cgi/boost
>
>
>


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk