Dynamic C++
Explore the world of dynamic C++ in this comprehensive conference talk from CppNow. Dive into the challenges of handling diverse data types and datatype conversion in C++ programming. Learn how to effectively transfer data between different formats like relational databases, XML, JSON, and HTML while navigating C++'s type checking mechanism. Discover various type erasure techniques and compare popular C++ type erasure solutions, including historical approaches like ANSI C union, void*, MS COM Variant, and Boost libraries, as well as recent developments such as boost::type_erasure and Facebook's folly::dynamic. Examine the internals, design, capabilities, pros, and cons of solutions like boost::variant, boost::any, boost::type_erasure, folly::dynamic, and Poco::Dynamic. Gain insights into performance benchmarks and understand the balance between C++'s type safety and the necessity of type erasure in modern software development. Through detailed explanations and code examples, master the art of implementing dynamic data storage, operations support, and advanced techniques like variants, visitors, and placeholders in C++. Read more