~ubuntu-branches/ubuntu/wily/bombono-dvd/wily

« back to all changes in this revision

Viewing changes to libs/boost-lib/boost/type_traits/is_polymorphic.hpp

  • Committer: Bazaar Package Importer
  • Author(s): Alessio Treglia
  • Date: 2010-11-04 11:46:25 UTC
  • mto: This revision was merged to the branch mainline in revision 8.
  • Revision ID: james.westby@ubuntu.com-20101104114625-8xfdhvhpsm51i0nu
Tags: upstream-0.8.0
ImportĀ upstreamĀ versionĀ 0.8.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
#ifndef BOOST_TT_IS_POLYMORPHIC_HPP
9
9
#define BOOST_TT_IS_POLYMORPHIC_HPP
10
10
 
 
11
#include <boost/type_traits/intrinsics.hpp>
 
12
#ifndef BOOST_IS_POLYMORPHIC
11
13
#include <boost/type_traits/is_class.hpp>
12
14
#include <boost/type_traits/remove_cv.hpp>
 
15
#endif
13
16
// should be the last #include
14
 
#include "boost/type_traits/detail/bool_trait_def.hpp"
 
17
#include <boost/type_traits/detail/bool_trait_def.hpp>
15
18
#include <boost/detail/workaround.hpp>
16
19
 
17
20
namespace boost{
 
21
 
 
22
#ifndef BOOST_IS_POLYMORPHIC
 
23
 
18
24
namespace detail{
19
25
 
20
26
template <class T>
31
37
      ~d1()throw();
32
38
#  endif 
33
39
      char padding[256];
 
40
   private:
 
41
      // keep some picky compilers happy:
 
42
      d1(const d1&);
 
43
      d1& operator=(const d1&);
34
44
   };
35
45
   struct d2 : public ncvT
36
46
   {
43
53
      virtual void unique_name_to_boost5487629(unique*);
44
54
#  endif
45
55
      char padding[256];
 
56
   private:
 
57
      // keep some picky compilers happy:
 
58
      d2(const d2&);
 
59
      d2& operator=(const d2&);
46
60
   };
47
61
# endif 
48
62
   BOOST_STATIC_CONSTANT(bool, value = (sizeof(d2) == sizeof(d1)));
87
101
 
88
102
BOOST_TT_AUX_BOOL_TRAIT_DEF1(is_polymorphic,T,::boost::detail::is_polymorphic_imp<T>::value)
89
103
 
 
104
#else // BOOST_IS_POLYMORPHIC
 
105
 
 
106
BOOST_TT_AUX_BOOL_TRAIT_DEF1(is_polymorphic,T,BOOST_IS_POLYMORPHIC(T))
 
107
 
 
108
#endif
 
109
 
90
110
} // namespace boost
91
111
 
92
 
#include "boost/type_traits/detail/bool_trait_undef.hpp"
 
112
#include <boost/type_traits/detail/bool_trait_undef.hpp>
93
113
 
94
114
#endif