4 ms·
Does this one-liner count as modern C++? const string& s = max<string>("a", "b"); It makes a dangling reference that will crash when accessed. In Rust tha
by cousin_it 10y ago
Does this one-liner count as modern C++?
const string& s = max<string>("a", "b");
It makes a dangling reference that will crash when accessed. In Rust that's impossible.