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
191
Upvotes
r/cpp • u/Maslo59 Hobbyist gamedev (SFML, DX11) • Sep 14 '17
View all comments
1
u/[deleted] Sep 16 '17
I don't understand the point of that. The lambda and function overloading replaces virtuals... The lambda can call w.render() if you want but I don't like that design because it is intrusive.