
On Dec 20, 2007 1:31 PM, Filip Balas <fbalas@gmail.com> wrote:
On Dec 19, 2007 10:11 AM, Michael Fawcett <michael.fawcett@gmail.com> wrote:
On Dec 18, 2007 4:59 PM, Filip Balas <fbalas@gmail.com> 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>());
If that's the case, then why is it an example on the Boost docs ;-)
Good question. I'm not the author, nor am I the maintainer. Try your code again like so: fs::path configPath((fs::initial_path<fs::path>())); --Michael Fawcett