|
Boost Users : |
Subject: Re: [Boost-users] exceptions from boost::filesystem not catchable on os/x 10.6.8 boost-1.47.0
From: Martin Dyring-Andersen (mda_at_[hidden])
Date: 2011-09-05 04:36:56
> -----Original Message-----
>
> any ideas?
>
According to the documentation boost::filesystem::exists returns a bool to indicate if the path exists, an exception is thrown if something ... exceptional ... happens. ;-)
>From the documentation:
bool exists(const path& p);
bool exists(const path& p, system::error_code& ec);
Returns: exists(status(p)) or exists(status(p, ec)), respectively.
Throws: filesystem_error; overload with error_code& throws nothing.
-- Best regards, Martin Dyring-Andersen
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