old_pods. NXP CodeWarrior Development Studio
Реклама
Реклама
Chapter 29 Pragmas for C++
Implements non-standard C++ friend declaration behavior that allows friend declarations to be visible in the enclosing scope.
#pragma old_friend_lookup on | off | reset
Example
This example shows friend declarations that are invalid without #pragma old_friend_lookup.
Listing 29-10. Valid and invalid declarations without #pragma old_friend_lookup
class C2; void f2(); struct S {
friend class C1;
friend class C2;
friend void f1();
friend void f2();
};
C1 *cp1; // error, C1 is not visible without namespace declaration
C2 *cp2; // OK int main()
{
f1(); // error, f1() is not visible without namespace declaration
f2(); // OK
}
29.34 old_pods
Permits non-standard handling of classes, structs, and unions containing pointer-topointer members
Syntax
#pragma old_pods on | off | reset
Remarks
CodeWarrior Development Studio for Power Architecture Processors Build Tools Reference Manual, Rev.
10.6, 02/2014
Freescale Semiconductor, Inc.
449
Скачать
Реклама