Get the latest tech news

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


Thank you for the suggestion. But *in that context* that would cause nasty bugs in my code, and in code that relies on it.

None

Get the Android app

Or read this on Hacker News

Read more on:

Photo of std

std

Photo of const

const

Photo of string views

string views

Related news:

News photo

Understanding Std:Shared_mutex from C++17

News photo

C++26: Std:Is_within_lifetime

News photo

Jeffrey Epstein emails claim Bill Gates hid STD from wife after sex with ‘Russian girls’