direct_destruction. NXP CodeWarrior Development Studio
Reklam
Reklam
direct_destruction
Syntax
#pragma defer_defarg_parsing on | off
Remarks
To be accepted as valid, some default expressions with template arguments will require
additional parenthesis. For example, Listing 29-4 on page 440
results in an error message.
Listing 29-4. Deferring parsing of default arguments
template<typename T,typename U> struct X { T t; U u; }; struct Y {
// The following line is not accepted, and generates
// an error message with defer_defarg_parsing on.
void f(X<int,int> = X<int,int>());
};
does not generate an error message.
Listing 29-5. Correct default argument deferral
template<typename T,typename U> struct X { T t; U u; }; struct Y {
// The following line is OK if the default
// argument is parenthesized.
void f(X<int,int> = (X<int,int>()) );
};
This pragma does not correspond to any panel setting. By default, this pragma is on
.
29.16 direct_destruction
This pragma is obsolete. It is no longer available.
29.17 direct_to_som
This pragma is obsolete. It is no longer available.
29.18 dont_inline
CodeWarrior Development Studio for Power Architecture Processors Build Tools Reference Manual, Rev.
10.6, 02/2014
440 Freescale Semiconductor, Inc.
İndir
Reklam