There is a long section on the rules of implementing run-time polimorphism via class hierarchies, but no guidelines on the alternative implementations on runtime-polimorphism, (I.e., with std::variant, or type erased containers).
I think some guidance on when to use which sollution would also be great. (I am addicted to variants these days, so I cannot really come up with those ...)
There is a long section on the rules of implementing run-time polimorphism via class hierarchies, but no guidelines on the alternative implementations on runtime-polimorphism, (I.e., with std::variant, or type erased containers).
I think some guidance on when to use which sollution would also be great. (I am addicted to variants these days, so I cannot really come up with those ...)