1 // (C) Copyright Beman Dawes 2008
3 // Use, modification and distribution are subject to the
4 // Boost Software License, Version 1.0. (See accompanying file
5 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
7 // See http://www.boost.org/libs/config for more information.
9 // MACRO: BOOST_NO_CXX11_EXTERN_TEMPLATE
10 // TITLE: C++0x extern template unavailable
11 // DESCRIPTION: The compiler does not support C++0x extern template
13 namespace boost_no_cxx11_extern_template {
15 template<class T, class U> void f(T const* p, U const* q)
21 class must_not_compile
24 void f(T const* p, int const* q);
28 void must_not_compile<T>::f(T const* p, int const* q)
33 extern template void f<>(int const*, float const*);
34 extern template class must_not_compile<int>;