1// (C) Copyright Alisdair Meredith 2006. 2// Use, modification and distribution are subject to the 3// Boost Software License, Version 1.0. (See accompanying file 4// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 5 6// See http://www.boost.org/libs/config for most recent version. 7 8// MACRO: BOOST_NO_TWO_PHASE_NAME_LOOKUP 9// TITLE: Two phase name lookup 10// DESCRIPTION: If the compiler does not perform two phase name lookup 11 12namespace boost_no_two_phase_name_lookup { 13 14template< class T > 15struct base { 16 int call() { 17 return 1; 18 } 19}; 20 21int call() { 22 return 0; 23} 24 25template< class T > 26struct derived : base< T > { 27 int call_test() { 28 return call(); 29 } 30}; 31 32int test() 33{ 34 derived< int > d; 35 return d.call_test(); 36} 37 38} 39 40 41 42