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_FUNCTION_TEMPLATE_ORDERING
9 // TITLE: no function template ordering
10 // DESCRIPTION: The compiler does not perform
11 // function template ordering or its function
12 // template ordering is incorrect.
14 // template<typename T> void f(T); // #1
15 // template<typename T, typename U> void f(T (*)(U)); // #2
17 // f(&bar); // should choose #2.
20 namespace boost_no_function_template_ordering{
28 template<typename T, typename U>
41 return f(i) || !f(&bar);