Stages of C++ Templates Compilation On Windows
November 30, 2020
In order to compile C++ templates the compilers like Embarcadero RAD Studio C++ compilers are required to perform two stages: definition stage and instantiation stage.
The template definition stage
On this stage the following checks are performed:
static assertions and availability of names declarations (such as names of classes and functions) independent on template parameters are…