Re:A polyglot's guide to multiple-dispatch
by RossBencina on Thursday September 11, 2025 @03:55AM
(#45209019)
Where "now" means C++17 or C++20 depending on whether or not you understand what INVOKE<R> semantics are?
Re:A polyglot's guide to multiple-dispatch
by maattdd on Thursday September 11, 2025 @05:00AM
(#45209367)
TIL that std::visit supports multiple variants. How new is that ?
Re:A polyglot's guide to multiple-dispatch
by MathMonkeyMan on Thursday September 11, 2025 @05:30AM
(#45209533)
Always did, as far as I know. Never knew why...
And std::variant is now a better choice for cases like in the article above, where previously inheritance was used to represent a closed set of possible subtypes.