Replacing unique_ptr with C++17's std::variant a Practical Experiment--Bartlomiej Filipek

variant shows his capabilities.

Replacing unique_ptr with C++17's std::variant a Practical Experiment

by Bartlomiej Filipek

From the article:

Some time ago I wrote about a new way to implement runtime polymorphism which is based not on virtual functions but on std::visit and std::variant. Please have a look at this new blog post where I experiment with this approach on my home project. The experiment is more practical than artificial examples.

See advantages, disadvantages and practical code issues.

Add a Comment

Comments are closed.

Comments (0)

There are currently no comments on this entry.