]> git.lyx.org Git - lyx.git/blob - boost/boost/type_traits/remove_reference.hpp
update to boost 1.30.1
[lyx.git] / boost / boost / type_traits / remove_reference.hpp
1
2 // (C) Copyright Steve Cleary, Beman Dawes, Howard Hinnant & John Maddock 2000.
3 // Permission to copy, use, modify, sell and distribute this software is 
4 // granted provided this copyright notice appears in all copies. This software 
5 // is provided "as is" without express or implied warranty, and with no claim 
6 // as to its suitability for any purpose.
7 //
8 // See http://www.boost.org for most recent version including documentation.
9
10 #ifndef BOOST_TT_REMOVE_REFERENCE_HPP_INCLUDED
11 #define BOOST_TT_REMOVE_REFERENCE_HPP_INCLUDED
12
13 #include "boost/type_traits/broken_compiler_spec.hpp"
14 #include "boost/config.hpp"
15
16 // should be the last #include
17 #include "boost/type_traits/detail/type_trait_def.hpp"
18
19 namespace boost {
20
21 #ifndef BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
22
23 BOOST_TT_AUX_TYPE_TRAIT_DEF1(remove_reference,T,T)
24 BOOST_TT_AUX_TYPE_TRAIT_PARTIAL_SPEC1_1(typename T,remove_reference,T&,T)
25
26 #if defined(__BORLANDC__)
27 // these are illegal specialisations; cv-qualifies applied to
28 // references have no effect according to [8.3.2p1],
29 // C++ Builder requires them though as it treats cv-qualified
30 // references as distinct types...
31 BOOST_TT_AUX_TYPE_TRAIT_PARTIAL_SPEC1_1(typename T,remove_reference,T& const,T)
32 BOOST_TT_AUX_TYPE_TRAIT_PARTIAL_SPEC1_1(typename T,remove_reference,T& volatile,T)
33 BOOST_TT_AUX_TYPE_TRAIT_PARTIAL_SPEC1_1(typename T,remove_reference,T& const volatile,T)
34 #endif
35
36 #else
37
38 BOOST_TT_AUX_TYPE_TRAIT_DEF1(remove_reference,T,typename detail::remove_reference_impl<T>::type)
39
40 #endif // BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
41
42 } // namespace boost
43
44 #include "boost/type_traits/detail/type_trait_undef.hpp"
45
46 #endif // BOOST_TT_REMOVE_REFERENCE_HPP_INCLUDED