News for hackers. Stuff that matters.
Re:Switching from C++ to Rust by otabdeveloper4 on Tuesday March 14, 2023 @01:54AM (#35147887)
boost::variant has been around forever.

Most modern C++ codebases do compile-time polymorphism via templates, though. std::variant is a niche use for things like serialization, when you need to make type choices at runtime.

There are no comments on this comment yet.