C/C++ Compiler (cl.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
C2547
                                             Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
     Compiler error C2547
 
     illegal cast of overloaded function
 
     A pointer to a function type was converted to an overloaded type.
 
     Conversion of a pointer to a function into a pointer to an
     overloaded function is not allowed.
 
     The following is an example of this error:
 
          int func();
          int func( int );
          ( int (*)() )func;      // error, func is overloaded
 
          int func2();
          ( void (*)() )func2;    // OK, func2 is not overloaded
                                    -♦-