[filesystem] basic_path as paramter
I'd like to use basic_path as a function parameter so that it works
correctly whether a wide or narrow string is passed.
template<typename T>
void func(basic_path<T> file) { do thing to file }
func("myfile");
func(L"myfile");
However I can't do this becuase basic_path has a second Traits template
paramter which is not itself a template. So I tried the following
workaround:
template<typename T> struct traits_chooser;
template<> struct traits_chooser
participants (1)
-
Alexander Lamaison