Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Fun with Boost.Hana

CppNow via YouTube

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

Reviews

Start your review of Fun with Boost.Hana

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.