mirror of
https://github.com/boostorg/unordered.git
synced 2025-07-30 03:17:15 +02:00
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>
|
template <typename T>
|
||||||
struct has_select_on_container_copy_construction
|
struct has_select_on_container_copy_construction
|
||||||
{
|
{
|
||||||
#if defined(__IBMCPP__)
|
BOOST_UNORDERED_CHECK_MEMBER(1, 1,
|
||||||
BOOST_UNORDERED_CHECK_MEMBER(1, 2,
|
|
||||||
select_on_container_copy_construction,
|
|
||||||
T (T::*)());
|
|
||||||
#endif
|
|
||||||
BOOST_UNORDERED_CHECK_MEMBER(2, 1,
|
|
||||||
select_on_container_copy_construction,
|
select_on_container_copy_construction,
|
||||||
T (T::*)() const);
|
T (T::*)() const);
|
||||||
BOOST_UNORDERED_DEFAULT_MEMBER(3, 2);
|
BOOST_UNORDERED_DEFAULT_MEMBER(2, 2);
|
||||||
|
|
||||||
enum { value = sizeof(test<T>(choose())) == sizeof(choice1::type) };
|
enum { value = sizeof(test<T>(choose())) == sizeof(choice1::type) };
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user