On Tue, 09 Mar 2010 09:38:32 -0800, Steven Watanabe wrote:
Alex Lamaison wrote:
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");
Try specializing for char and wchar_t instead of char* and wchar_t*. You could also just use
template
void func(const basic_bath & file);
Thanks Steven. I tried both of these but still no luck.
For this definition:
template