
16 May
2008
16 May
'08
12:15 p.m.
On Friday 16 May 2008 10:37:42 Enda Mannion wrote:
I am trying to use boost filesystem.
wchar_t* file = L"myfile";
*meeep* Wrong! Use 'wchar_t const*' instead. [Yes, that's not the issue here, but I just wanted to point it out. ]
boost::filesystem::path path(file);
Take a look at the 'wpath' class: typedef basic_path<std::string, path_traits> path; typedef basic_path<std::wstring, wpath_traits> wpath; 'wpath' use a wchar_t representation for a path. Uli