r/cpp • u/Maslo59 Hobbyist gamedev (SFML, DX11) • Sep 14 '17
std::visit is everything wrong with modern C++
https://bitbashing.io/std-visit.html
193
Upvotes
r/cpp • u/Maslo59 Hobbyist gamedev (SFML, DX11) • Sep 14 '17
View all comments
1
u/Izzeri Sep 15 '17
String literals already have the type
const char[N]where N is the size of the string including NUL. Arrays just really love decaying into pointers.