forked from boostorg/unordered
Unordered: Revert [74236].
On vacpp `has_select_on_container_copy_construction` was incorrectly returning positive for a non-const `select_on_container_copy_construction`. This resulted in a compile error as it tried to call it for a const allocator. The workaround seemed to have just made things worse so I'm reverting it. It's actually not that bad a problem as a non-const `select_on_container_copy_construction` is probably a mistake. [SVN r74294]
This commit is contained in:
@ -250,15 +250,10 @@ namespace boost { namespace unordered { namespace detail {
|
||||
template <typename T>
|
||||
struct has_select_on_container_copy_construction
|
||||
{
|
||||
#if defined(__IBMCPP__)
|
||||
BOOST_UNORDERED_CHECK_MEMBER(1, 2,
|
||||
select_on_container_copy_construction,
|
||||
T (T::*)());
|
||||
#endif
|
||||
BOOST_UNORDERED_CHECK_MEMBER(2, 1,
|
||||
BOOST_UNORDERED_CHECK_MEMBER(1, 1,
|
||||
select_on_container_copy_construction,
|
||||
T (T::*)() const);
|
||||
BOOST_UNORDERED_DEFAULT_MEMBER(3, 2);
|
||||
BOOST_UNORDERED_DEFAULT_MEMBER(2, 2);
|
||||
|
||||
enum { value = sizeof(test<T>(choose())) == sizeof(choice1::type) };
|
||||
};
|
||||
|
Reference in New Issue
Block a user