Quantcast
Channel: Bartek's coding blog
Viewing all articles
Browse latest Browse all 325

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

$
0
0

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.

Read more...

Viewing all articles
Browse latest Browse all 325

Trending Articles