// paths.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include #include using namespace boost::filesystem; path p(L"C:\\TEMP\\"); path q(p / L"wide"); // Works! path r(p / "narrow"); // Breaks :( int _tmain(int argc, _TCHAR* argv[]) { path p(L"C:\\TEMP\\"); path q(p / L"wide"); // Works! path r(p / "narrow"); // Works here! std::cout << r.string() << std::endl; return 0; }