Overview
Explore advanced metaprogramming techniques using Boost.Hana in this comprehensive conference talk from C++Now 2017. Dive deep into real-world use cases, including an event-triggering system and a type erasure library, to understand how Hana can elegantly solve complex metaprogramming problems. Learn to leverage modern metaprogramming to define expressive interfaces, automate repetitive tasks, and increase code maintainability. Gain insights into Hana's interaction with the C++ type system, compile-time computations, and pattern matching. Discover how to implement features like dimensional analysis, user-defined literals, and compile-time strings using Hana's powerful abstractions. Suitable for developers with some familiarity with Boost.Hana who want to deepen their understanding and see practical applications of the library.
Syllabus
Introduction
Slice as an object
Fusion
Map
Spirit
compiledlinelife information
basic parser
literal parser
combined parser
dont copypaste
minimal dimensional analysis library
attach units to quantities
compiletime integers
integral constant
quantity
dimension
constructor
compose
even
compiletime strings
userdefined literal
even system
pattern match
callback
trigger
Taught by
CppNow