~tsarev/boostdc/cmake

« back to all changes in this revision

Viewing changes to boost/boost/type_traits/remove_reference.hpp

  • Committer: bigmuscle
  • Date: 2010-05-08 08:47:15 UTC
  • Revision ID: svn-v4:5fb55d53-692c-0410-a46a-e90ab66e00ee:trunk:497
removed old boost version

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 
2
 
//  (C) Copyright Steve Cleary, Beman Dawes, Howard Hinnant & John Maddock 2000.
3
 
//  Use, modification and distribution are subject to the Boost Software License,
4
 
//  Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
5
 
//  http://www.boost.org/LICENSE_1_0.txt).
6
 
//
7
 
//  See http://www.boost.org/libs/type_traits for most recent version including documentation.
8
 
 
9
 
#ifndef BOOST_TT_REMOVE_REFERENCE_HPP_INCLUDED
10
 
#define BOOST_TT_REMOVE_REFERENCE_HPP_INCLUDED
11
 
 
12
 
#include <boost/type_traits/broken_compiler_spec.hpp>
13
 
#include <boost/config.hpp>
14
 
#include <boost/detail/workaround.hpp>
15
 
 
16
 
#if BOOST_WORKAROUND(BOOST_MSVC,<=1300)
17
 
#include <boost/type_traits/msvc/remove_reference.hpp>
18
 
#endif
19
 
 
20
 
// should be the last #include
21
 
#include <boost/type_traits/detail/type_trait_def.hpp>
22
 
 
23
 
namespace boost {
24
 
 
25
 
#ifndef BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
26
 
 
27
 
BOOST_TT_AUX_TYPE_TRAIT_DEF1(remove_reference,T,T)
28
 
BOOST_TT_AUX_TYPE_TRAIT_PARTIAL_SPEC1_1(typename T,remove_reference,T&,T)
29
 
 
30
 
#if defined(BOOST_ILLEGAL_CV_REFERENCES)
31
 
// these are illegal specialisations; cv-qualifies applied to
32
 
// references have no effect according to [8.3.2p1],
33
 
// C++ Builder requires them though as it treats cv-qualified
34
 
// references as distinct types...
35
 
BOOST_TT_AUX_TYPE_TRAIT_PARTIAL_SPEC1_1(typename T,remove_reference,T& const,T)
36
 
BOOST_TT_AUX_TYPE_TRAIT_PARTIAL_SPEC1_1(typename T,remove_reference,T& volatile,T)
37
 
BOOST_TT_AUX_TYPE_TRAIT_PARTIAL_SPEC1_1(typename T,remove_reference,T& const volatile,T)
38
 
#endif
39
 
 
40
 
#elif !BOOST_WORKAROUND(BOOST_MSVC,<=1300)
41
 
 
42
 
BOOST_TT_AUX_TYPE_TRAIT_DEF1(remove_reference,T,typename boost::detail::remove_reference_impl<T>::type)
43
 
 
44
 
#endif // BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
45
 
 
46
 
} // namespace boost
47
 
 
48
 
#include <boost/type_traits/detail/type_trait_undef.hpp>
49
 
 
50
 
#endif // BOOST_TT_REMOVE_REFERENCE_HPP_INCLUDED