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.
C4260
                                             Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
     Compiler warning (level 1) C4260
 
     no override, 'class1::function1' has 'model' 'this' memory model
     whereas 'class2::function2' has 'model 'this' memory model
 
     The specified functions had different ambient memory models.
 
     The Microsoft memory-model specifiers for function arguments and
     for the this pointer are used for disambiguation between
     overloaded functions.
 
     The virtual mechanism will not be invoked for functions with
     differing ambient memory models.
 
     The following example causes this warning:
 
          struct X
          {
             virtual void func() __near;
          };
 
          struct Y : X
          {
             void func() __far;   // warning
          };
                                    -♦-