Templates have gone from being a 'nice-to-have' feature to a key part of C++ but using them can be difficult in practice.
We will describe some problematic areas and see how things such as "constexpr if" - coming in C++17 - and the Concepts Technical Specification - available in gcc - can make templates easier both to write and to use.
YOU MAY ALSO LIKE:
- Some objects are more equal than others - the many meanings of equality, value and identity (SkillsCast recorded in April 2011)
- Designing embodied human-computer interactions with audio processing parameters (SkillsCast recorded in October 2019)
- Dawn of a New Error (SkillsCast recorded in October 2019)
Making Templates Easier
Roger has been a member of ACCU since 1999; he's on the ACCU committee and Conference committee, the Overload review team and runs the Code Critique section of CVu. He also writes the occasional article for CVu and Overload.