merged sandbox-branches/intrusive_fix_SunCC (r55765 and r55775) fixing intrusive for Sun CC (#3339)

[SVN r55918]
This commit is contained in:
Christopher Hite
2009-08-31 12:16:58 +00:00
parent 25c7bdfdb0
commit 6f941ef73c
3 changed files with 58 additions and 58 deletions

View File

@ -46,7 +46,7 @@ struct internal_base_hook_bool
struct two_or_three {one _[2 + Add];};
template <class U> static one test(...);
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));
};
@ -63,7 +63,7 @@ struct internal_any_hook_bool
struct two_or_three {one _[2 + Add];};
template <class U> static one test(...);
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));
};
@ -81,7 +81,7 @@ struct external_value_traits_bool
struct two_or_three {one _[2 + Add];};
template <class U> static one test(...);
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));
};
@ -92,7 +92,7 @@ struct external_bucket_traits_bool
struct two_or_three {one _[2 + Add];};
template <class U> static one test(...);
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));
};

View File

@ -187,7 +187,7 @@ struct store_hash_bool
struct two_or_three {one _[2 + Add];};
template <class U> static one test(...);
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));
};
@ -204,7 +204,7 @@ struct optimize_multikey_bool
struct two_or_three {one _[2 + Add];};
template <class U> static one test(...);
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));
};

View File

@ -108,7 +108,7 @@ class smart_ptr
public: //Public Functions
//!Constructor from raw pointer (allows "0" pointer conversion). Never throws.
explicit smart_ptr(pointer ptr = 0)
smart_ptr(pointer ptr = 0)
: m_ptr(ptr)
{}