|
Boost Users : |
From: Filip Balas (fbalas_at_[hidden])
Date: 2007-12-20 13:39:27
My question stemmed from the code available here:
http://www.boost.org/libs/filesystem/example/simple_ls.cpp
Filip
On Dec 19, 2007 10:11 AM, Michael Fawcett <michael.fawcett_at_[hidden]> wrote:
> On Dec 18, 2007 4:59 PM, Filip Balas <fbalas_at_[hidden]> wrote:
> > For those who might run into the same error, the only thing that
> > would work for me is to change my code to the following:
> > #include <boost/filesystem/path.hpp>
> > #include <boost/filesystem/operations.hpp>
> >
> > using namespace boost::filesystem;
> >
> > //fs::path configPath(fs::initial_path<fs::path>());
> > path configPath = system_complete(path("./appSettings.cfg", native));
> >
> > Don't know why the boost samples don't work, but this does.
>
> Are you sure this isn't a case of C++'s Most Vexing Parse?
>
> // This is a function declaration!
> fs::path configPath(fs::initial_path<fs::path>());
>
>
> --Michael Fawcett
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>
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