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.
C2605
                                             Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
     Compiler error C2605
 
     overloaded functions 'class::function' do not have same access
 
     The specified overloaded functions have different access but
     but were named in an access declaration.
 
     Access cannot be adjusted for overloaded functions that do not
     have the same access.
 
     The following are examples of this error:
 
          struct X
          {
          private:
             int f();
          protected:
             int f(int);
          public:
             int f(int,int);
          };
 
          struct A : public X
          {
          protected:
             X::f;       // error
          public:
             X::f;       // error
          };
 
          struct B : protected X
          {
          protected:
             X::f;       // error
          public:
             X::f;       // error
          };
 
          struct C : private X
          {
          protected:
             X::f;       // error
          public:
             X::f;       // error
          };
                                    -♦-