RAD Studio |  |

E2253: Calling convention must be attributed to the function type, not the closure (C++)

The calling convention is in the wrong place in the closure declaration. For example,

Copy Code

    int __fastcall (__closure * x)()

will compile, but

Copy Code

    int (__fastcall __closure * x)()

will not.

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!