diff --git a/include/boost/unordered/detail/allocator_helpers.hpp b/include/boost/unordered/detail/allocator_helpers.hpp index 7a44a479..457ddcb4 100644 --- a/include/boost/unordered/detail/allocator_helpers.hpp +++ b/include/boost/unordered/detail/allocator_helpers.hpp @@ -339,7 +339,7 @@ namespace boost { namespace unordered { namespace detail { boost::unordered::detail::has_max_size::value, SizeType >::type call_max_size(const Alloc&) { - return std::numeric_limits::max(); + return (std::numeric_limits::max)(); } template diff --git a/include/boost/unordered/detail/emplace_args.hpp b/include/boost/unordered/detail/emplace_args.hpp index cb56eac2..9e2ee64e 100644 --- a/include/boost/unordered/detail/emplace_args.hpp +++ b/include/boost/unordered/detail/emplace_args.hpp @@ -223,29 +223,29 @@ BOOST_UNORDERED_CONSTRUCT_FROM_TUPLE(10, std::tr1) #if defined(BOOST_UNORDERED_DEPRECATED_PAIR_CONSTRUCT) template struct emulation1 { - static choice1::type check(choice1, std::pair const&); - static choice2::type check(choice2, A const&); - static choice3::type check(choice3, ...); + static choice1::type test(choice1, std::pair const&); + static choice2::type test(choice2, A const&); + static choice3::type test(choice3, ...); enum { value = - sizeof(check(choose(), boost::unordered::detail::make())) == + sizeof(test(choose(), boost::unordered::detail::make())) == sizeof(choice2::type) }; }; #endif template struct check3_base { - static choice1::type check(choice1, + static choice1::type test(choice1, boost::unordered::piecewise_construct_t); #if defined(BOOST_UNORDERED_DEPRECATED_PAIR_CONSTRUCT) - static choice2::type check(choice2, A const&); + static choice2::type test(choice2, A const&); #endif - static choice3::type check(choice3, ...); + static choice3::type test(choice3, ...); enum { value = - sizeof(check(choose(), boost::unordered::detail::make())) }; + sizeof(test(choose(), boost::unordered::detail::make())) }; }; template