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) 5 6// See http://www.boost.org/libs/config for most recent version. 7 8// MACRO: BOOST_NO_CV_VOID_SPECIALIZATIONS 9// TITLE: template specialisations of cv-qualified void 10// DESCRIPTION: If template specialisations for cv-void types 11// conflict with a specialisation for void. 12 13 14namespace boost_no_cv_void_specializations{ 15 16template <class T> 17struct is_void 18{ 19}; 20 21template <> 22struct is_void<void> 23{}; 24 25template <> 26struct is_void<const void> 27{}; 28 29template <> 30struct is_void<volatile void> 31{}; 32 33template <> 34struct is_void<const volatile void> 35{}; 36 37int test() 38{ 39 return 0; 40} 41 42} 43 44 45 46