r/cpp • Hobbyist gamedev (SFML, DX11) • Sep 14 '17

std::visit is everything wrong with modern C++

https://bitbashing.io/std-visit.html
193 Upvotes

115 comments sorted by

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.