forked from boostorg/unordered
Unordered: Try to fix vacpp's issue with select_on_container_copy_construction
[SVN r74236]
This commit is contained in:
@@ -250,10 +250,15 @@ 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
|
||||||
{
|
{
|
||||||
BOOST_UNORDERED_CHECK_MEMBER(1, 1,
|
#if defined(__IBMCPP__)
|
||||||
|
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(2, 2);
|
BOOST_UNORDERED_DEFAULT_MEMBER(3, 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