C++Now 2015 has ended
Please visit the C++Now website.
Back To Schedule
Wednesday, May 13 • 2:30pm - 4:00pm
switchAny - A Practical Exercise in Template Metaprogramming

Log in to save this to your schedule, view media, leave feedback and see who's attending!

Have you heard about template metaprogramming? Have you seen how you can use it to calculate factorials at compile time? Have you thought to yourself that this sounds completely useless?

In this tutorial I present a small but real-world application of template metaprogramming. I show switchAny, a tool to dispatch to different code pieces based on the type contained in a Boost.Any holder. I demonstrate a number of TMP techniques used to develop this tool, including new techniques possible only in C++14 and C++1z.

Link to github repo 

avatar for Sebastian Redl

Sebastian Redl

Senior Programmer, Teoco
Sebastian holds a BSc in Software Engineering from the Technical University of Vienna and is currently finishing an MSc. He is working at a small software company called Symena (part of Teoco), and recently spent a year's sabbatical working at Google. He has contributed heavily to... Read More →

Wednesday May 13, 2015 2:30pm - 4:00pm MDT
Flug Auditorium

Attendees (0)