1// (C) Copyright Terje Slettebo 2002. 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 7// MACRO: BOOST_BCB_PARTIAL_SPECIALIZATION_BUG 8// TITLE: Full partial specialization support. 9// DESCRIPTION: Borland C++ Builder has some rather specific partial 10// specialisation bugs which this code tests for. 11 12 13#include <vector> 14 15namespace boost_bcb_partial_specialization_bug{ 16 17 18template<class T1,class T2> 19class Test 20{ 21}; 22 23template<class T1,class T2> 24class Test<std::vector<T1>,T2> 25{ 26}; 27 28template<class T> 29class Test<std::vector<int>,T> 30{ 31}; 32 33template <class T> 34struct is_const{}; 35template <class T> 36struct is_const<T const>{}; 37 38int test() 39{ 40 Test<std::vector<int>,double> v; 41 is_const<const int> ci; 42 (void)v; // warning suppression 43 (void)ci; 44 return 0; 45} 46 47 48} 49 50 51 52 53 54