// This is a header file. class MyClass; // It can be forward declared because the function uses reference. // However, how can I do forward declaraion about std::wstri
std::wstring is a template instantiation, so you can't just forward declare it. You'll have to use the header file.
std::wstring