Skip to main content

IAR Embedded Workbench for RL78 5.20

basic_template_matching

In this section:
Syntax
#pragma basic_template_matching
Description

Use this pragma directive in front of a template function declaration to make the function fully memory-attribute aware, in the rare cases where this is useful. That template function will then match the template without the modifications, see Templates and data memory attributes.

Example
#pragma basic_template_matching
template<typename T> void fun(T *);

void MyF()
{
  fun((int __near *) 0); // T = int __near
}