1 // (C) Copyright John Maddock 2001.
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)
6 // See http://www.boost.org/libs/config for most recent version.
8 // MACRO: BOOST_NO_USING_TEMPLATE
9 // TITLE: using template declarations
10 // DESCRIPTION: The compiler will not accept a using declaration
11 // that imports a class or function template
12 // into a named namespace. Probably Borland/MSVC6 specific.
20 template <class T, class U = void>
23 friend op<T,U> operator +(const op&, const op&)
29 namespace boost_no_using_template{
36 boost_no_using_template::op<int, int> a;
37 boost_no_using_template::op<int, int> b;
39 return boost_no_using_template::global_foo(0);