mirror of
https://github.com/boostorg/unordered.git
synced 2025-07-30 03:17:15 +02:00
Unordered: Some inspect fixes.
[SVN r74908]
This commit is contained in:
@ -339,7 +339,7 @@ namespace boost { namespace unordered { namespace detail {
|
|||||||
boost::unordered::detail::has_max_size<Alloc>::value, SizeType
|
boost::unordered::detail::has_max_size<Alloc>::value, SizeType
|
||||||
>::type call_max_size(const Alloc&)
|
>::type call_max_size(const Alloc&)
|
||||||
{
|
{
|
||||||
return std::numeric_limits<SizeType>::max();
|
return (std::numeric_limits<SizeType>::max)();
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename Alloc>
|
template <typename Alloc>
|
||||||
|
@ -223,29 +223,29 @@ BOOST_UNORDERED_CONSTRUCT_FROM_TUPLE(10, std::tr1)
|
|||||||
#if defined(BOOST_UNORDERED_DEPRECATED_PAIR_CONSTRUCT)
|
#if defined(BOOST_UNORDERED_DEPRECATED_PAIR_CONSTRUCT)
|
||||||
template <typename A, typename B, typename A0>
|
template <typename A, typename B, typename A0>
|
||||||
struct emulation1 {
|
struct emulation1 {
|
||||||
static choice1::type check(choice1, std::pair<A, B> const&);
|
static choice1::type test(choice1, std::pair<A, B> const&);
|
||||||
static choice2::type check(choice2, A const&);
|
static choice2::type test(choice2, A const&);
|
||||||
static choice3::type check(choice3, ...);
|
static choice3::type test(choice3, ...);
|
||||||
|
|
||||||
enum { value =
|
enum { value =
|
||||||
sizeof(check(choose(), boost::unordered::detail::make<A0>())) ==
|
sizeof(test(choose(), boost::unordered::detail::make<A0>())) ==
|
||||||
sizeof(choice2::type) };
|
sizeof(choice2::type) };
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
template <typename A, typename B, typename A0>
|
template <typename A, typename B, typename A0>
|
||||||
struct check3_base {
|
struct check3_base {
|
||||||
static choice1::type check(choice1,
|
static choice1::type test(choice1,
|
||||||
boost::unordered::piecewise_construct_t);
|
boost::unordered::piecewise_construct_t);
|
||||||
|
|
||||||
#if defined(BOOST_UNORDERED_DEPRECATED_PAIR_CONSTRUCT)
|
#if defined(BOOST_UNORDERED_DEPRECATED_PAIR_CONSTRUCT)
|
||||||
static choice2::type check(choice2, A const&);
|
static choice2::type test(choice2, A const&);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static choice3::type check(choice3, ...);
|
static choice3::type test(choice3, ...);
|
||||||
|
|
||||||
enum { value =
|
enum { value =
|
||||||
sizeof(check(choose(), boost::unordered::detail::make<A0>())) };
|
sizeof(test(choose(), boost::unordered::detail::make<A0>())) };
|
||||||
};
|
};
|
||||||
|
|
||||||
template <typename A, typename B, typename A0>
|
template <typename A, typename B, typename A0>
|
||||||
|
Reference in New Issue
Block a user