Migration from boost::any
Explore the migration from boost::any to the C++17 std::any feature. Understand key differences like emplace support and small buffer optimization. Learn practical uses for flexible, type-safe storage including message passing and property management, improving your modern C++ coding capabilities.
We'll cover the following...
We'll cover the following...
Boost Any was introduced around the year 2001 (Version 1.23.0). Interestingly, the author of the boost library - Kevlin Henney - is also the author of the proposal for std::any. So the two types are strongly connected, and the STL version is heavily based on the predecessor.
Here are the main changes:
| Feature | Boost.Any |
|---|