Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r74913 - trunk/boost/unordered/detail
From: dnljms_at_[hidden]
Date: 2011-10-11 04:36:26


Author: danieljames
Date: 2011-10-11 04:36:23 EDT (Tue, 11 Oct 2011)
New Revision: 74913
URL: http://svn.boost.org/trac/boost/changeset/74913

Log:
Unordered: Avoid passing UDTs through `...`.
Text files modified:
   trunk/boost/unordered/detail/allocator_helpers.hpp | 3 ++-
   trunk/boost/unordered/detail/emplace_args.hpp | 2 +-
   2 files changed, 3 insertions(+), 2 deletions(-)

Modified: trunk/boost/unordered/detail/allocator_helpers.hpp
==============================================================================
--- trunk/boost/unordered/detail/allocator_helpers.hpp (original)
+++ trunk/boost/unordered/detail/allocator_helpers.hpp 2011-10-11 04:36:23 EDT (Tue, 11 Oct 2011)
@@ -104,7 +104,8 @@
     yes_type is_private_type(private_type const&);
 
     struct convert_from_anything {
- convert_from_anything(...);
+ template <typename T>
+ convert_from_anything(T const&);
     };
 
 #if !defined(BOOST_NO_SFINAE_EXPR) || BOOST_WORKAROUND(BOOST_MSVC, >= 1500)

Modified: trunk/boost/unordered/detail/emplace_args.hpp
==============================================================================
--- trunk/boost/unordered/detail/emplace_args.hpp (original)
+++ trunk/boost/unordered/detail/emplace_args.hpp 2011-10-11 04:36:23 EDT (Tue, 11 Oct 2011)
@@ -225,7 +225,7 @@
     struct emulation1 {
         static choice1::type test(choice1, std::pair<A, B> const&);
         static choice2::type test(choice2, A const&);
- static choice3::type test(choice3, ...);
+ static choice3::type test(choice3, convert_from_anything const&);
 
         enum { value =
             sizeof(test(choose(), boost::unordered::detail::make<A0>())) ==


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk