forked from boostorg/intrusive
merged sandbox-branches/intrusive_fix_SunCC (r55765 and r55775) fixing intrusive for Sun CC (#3339)
[SVN r55918]
This commit is contained in:
@ -46,7 +46,7 @@ struct internal_base_hook_bool
|
|||||||
struct two_or_three {one _[2 + Add];};
|
struct two_or_three {one _[2 + Add];};
|
||||||
template <class U> static one test(...);
|
template <class U> static one test(...);
|
||||||
template <class U> static two_or_three<U::boost_intrusive_tags::is_base_hook>
|
template <class U> static two_or_three<U::boost_intrusive_tags::is_base_hook>
|
||||||
test (detail::bool_<U::boost_intrusive_tags::is_base_hook>* = 0);
|
test (int);
|
||||||
static const std::size_t value = sizeof(test<T>(0));
|
static const std::size_t value = sizeof(test<T>(0));
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -63,7 +63,7 @@ struct internal_any_hook_bool
|
|||||||
struct two_or_three {one _[2 + Add];};
|
struct two_or_three {one _[2 + Add];};
|
||||||
template <class U> static one test(...);
|
template <class U> static one test(...);
|
||||||
template <class U> static two_or_three<U::is_any_hook>
|
template <class U> static two_or_three<U::is_any_hook>
|
||||||
test (detail::bool_<U::is_any_hook>* = 0);
|
test (int);
|
||||||
static const std::size_t value = sizeof(test<T>(0));
|
static const std::size_t value = sizeof(test<T>(0));
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -81,7 +81,7 @@ struct external_value_traits_bool
|
|||||||
struct two_or_three {one _[2 + Add];};
|
struct two_or_three {one _[2 + Add];};
|
||||||
template <class U> static one test(...);
|
template <class U> static one test(...);
|
||||||
template <class U> static two_or_three<U::external_value_traits>
|
template <class U> static two_or_three<U::external_value_traits>
|
||||||
test (detail::bool_<U::external_value_traits>* = 0);
|
test (int);
|
||||||
static const std::size_t value = sizeof(test<T>(0));
|
static const std::size_t value = sizeof(test<T>(0));
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -92,7 +92,7 @@ struct external_bucket_traits_bool
|
|||||||
struct two_or_three {one _[2 + Add];};
|
struct two_or_three {one _[2 + Add];};
|
||||||
template <class U> static one test(...);
|
template <class U> static one test(...);
|
||||||
template <class U> static two_or_three<U::external_bucket_traits>
|
template <class U> static two_or_three<U::external_bucket_traits>
|
||||||
test (detail::bool_<U::external_bucket_traits>* = 0);
|
test (int);
|
||||||
static const std::size_t value = sizeof(test<T>(0));
|
static const std::size_t value = sizeof(test<T>(0));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -187,7 +187,7 @@ struct store_hash_bool
|
|||||||
struct two_or_three {one _[2 + Add];};
|
struct two_or_three {one _[2 + Add];};
|
||||||
template <class U> static one test(...);
|
template <class U> static one test(...);
|
||||||
template <class U> static two_or_three<U::store_hash>
|
template <class U> static two_or_three<U::store_hash>
|
||||||
test (detail::bool_<U::store_hash>* = 0);
|
test (int);
|
||||||
static const std::size_t value = sizeof(test<T>(0));
|
static const std::size_t value = sizeof(test<T>(0));
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -204,7 +204,7 @@ struct optimize_multikey_bool
|
|||||||
struct two_or_three {one _[2 + Add];};
|
struct two_or_three {one _[2 + Add];};
|
||||||
template <class U> static one test(...);
|
template <class U> static one test(...);
|
||||||
template <class U> static two_or_three<U::optimize_multikey>
|
template <class U> static two_or_three<U::optimize_multikey>
|
||||||
test (detail::bool_<U::optimize_multikey>* = 0);
|
test (int);
|
||||||
static const std::size_t value = sizeof(test<T>(0));
|
static const std::size_t value = sizeof(test<T>(0));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -108,7 +108,7 @@ class smart_ptr
|
|||||||
public: //Public Functions
|
public: //Public Functions
|
||||||
|
|
||||||
//!Constructor from raw pointer (allows "0" pointer conversion). Never throws.
|
//!Constructor from raw pointer (allows "0" pointer conversion). Never throws.
|
||||||
explicit smart_ptr(pointer ptr = 0)
|
smart_ptr(pointer ptr = 0)
|
||||||
: m_ptr(ptr)
|
: m_ptr(ptr)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user