id summary reporter owner description type status milestone component version severity resolution keywords cc 1936 Make basic_path more generic? Beman Dawes Beman Dawes "in several places I need to have code which works both with char and wchar_t. Those are template functions. I also work with paths there so I wanted to actually write something like template void foo(const std::basic_string& s) { typedef fs::basic_path > path_type; ... } but it turned out that I can't do it because 1) basic_path has the second Traits template parameter mandatory and 2) this Traits parameter has actually different type for path and wpath: struct path_traits; typedef basic_path< std::string, path_traits > path; // ... struct BOOST_FILESYSTEM_DECL wpath_traits; typedef basic_path< std::wstring, wpath_traits > wpath; Of course, I can easily workaround it with my own traits, but I wonder could it be in the first place like: template class basic_path_traits; template > class basic_path; with basic_path_traits being specialized for std::string and std::wstring and fs::path and fs::wpath being just typedef basic_path< std::string > path; typedef basic_path< std::wstring > wpath; ? Thanks. -- Alexei Alexandrov" Feature Requests closed To Be Determined filesystem Boost 1.35.0 Problem fixed dtrebbien@…