Boost logo

Boost Users :

From: Andreas Henriksson (sausageboy_at_[hidden])
Date: 2007-12-09 14:05:18


Hello

Whenever I try to use exists() on a wpath, I get an exception. I'm running
Arch Linux, with Boost 1.34.1 and Gcc 4.2.2, if it matters.

Here is some code:

#include "boost/filesystem.hpp"
using namespace boost::filesystem;

int main()
{
    wpath test(L"whatever/path");
    exists(test);
    return 0;
}

Which compiles fine, but gives me this error message on runtime:

terminate called after throwing an instance of
'boost::filesystem::basic_filesystem_error<boost::filesystem::basic_path<std::basic_string<wchar_t,
std::char_traits<wchar_t>, std::allocator<wchar_t> >,
boost::filesystem::wpath_traits> >'
  what(): boost::filesystem::wpath::to_external conversion error
Aborted

Does anyone know what I am missing here?


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