Process Detector (For DVFS and monitoring process variation), TSMC 12FFC
Templates across API boundaries: Powerful but problematic
Stephen Cross, Undo Software
Embedded.com (March 07, 2016)
C++ is controversial. For every discussion about it, a certain percentage of people will love it and another substantial group will hate it. Above all, one feature highlights this divide: templates. Templates have many problems: they slow compile times, force implementations to be specified in headers and can bloat generated code. However they’re also a powerful mechanism for programming against generic types.
There can be no doubt that templates are a key part of the C++ language; the standard library relies on them heavily and they’ve been adopted throughout libraries such as Boost. This series of articles explains the problems with C++ templates and outlines new and exciting approaches for enhancing their capabilities and eliminating their drawbacks. In this first part, I define templates and discuss problems engineers have faced in dealing with templates across API boundaries.
![]() |
E-mail This Article | ![]() |
![]() |
Printer-Friendly Page |
|
Related Articles
- Transaction Analysis and Debug across Language Boundaries and between Abstraction Levels
- IoT Security: Exploring Risks and Countermeasures Across Industries
- CAN FD: Anything But Automotive Only
- System Verilog Macro: A Powerful Feature for Design Verification Projects
- Resolution of Interoperability challenges in Automatic Test Point insertion across different EDA vendors
New Articles
- Safeguarding the Arm Ecosystem with PSA Certified PUF-based Crypto Coprocessor
- Mastering Key Technologies to Realize the Dream - M31 IP Integration Services
- Create high-performance SoCs using network-on-chip IP
- IoT Security: Exploring Risks and Countermeasures Across Industries
- How Efinix is Conquering the Hurdle of Hardware Acceleration for Devices at the Edge