Community

Revisiting Heterogeneous Containers

(Danny Kalev) Five years ago, I explained how to simulate heterogeneous containers by storing raw pointers to polymorphic objects in an STL container. C++ has come along way since: tuples now allow you store arbitrary types in one object. Alternatively, you can replace the raw pointers with shared_p

Read More - Register for Free Membership