// (C) Copyright Eric Friedman 2002. Permission to copy, use, modify, sell and // distribute this software is granted provided this copyright notice appears // in all copies. This software is provided "as is" without express or implied // warranty, and with no claim as to its suitability for any purpose. // MACRO: BOOST_NO_USING_DECLARATION_OVERLOADS // TITLE: using declaration function overloads // DESCRIPTION: The compiler will not accept a using declaration // that brings a function from a base class into // a derived class if functions of the same name // are present in the derived class. namespace boost_no_using_declaration_overloads { struct base { static void f() { } }; struct test_using_overloads : base { using base::f; static int f(const int& i) { return i; } }; int test() { test_using_overloads::f(); return test_using_overloads::f(0); } }