// ---------------------------------------------------------------------- // // usingmbr.cc - Do we support using declarations within classes? // // History: // 02-May-2000 WEB Initial draft // 25-Apr-2001 WEB s//"ISOcxx\/ISOcxxSyntax.hh"/ // // ---------------------------------------------------------------------- #include "ISOcxx/ISOcxxSyntax.hh" class Base { public: int f( char ) { return 0; } int f( int ) { return 0; } }; // Base class Derived : public Base { public: #ifndef DEFECT_NO_MEMBER_USING using Base::f; int f( int ) { return 1; } #endif // DEFECT_NO_MEMBER_USING }; // Derived int main() { return Derived().f( char() ); } // main()