6.2.6. Manual overload resolution

Example 6.4 shows the use of C++ casts to do overload resolution for non-virtual function calls:

Example 6.4.  C++ casts

void g(int);
void g(long);

struct T
    int mf(int);
    int mf(int,int);

__asm void  f(T*, int, int)
    BL __cpp(static_cast<int (T::*)(int, int)>(&T::mf)) // calls T::mf(int, int)
    BL __cpp(static_cast<void (*)(int)>(g)) // calls g(int)
    BX lr

Copyright © 2002-2007 ARM Limited. All rights reserved.ARM DUI 0205H