Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r55138 - trunk/boost/unordered
From: daniel_james_at_[hidden]
Date: 2009-07-23 18:17:20


Author: danieljames
Date: 2009-07-23 18:17:20 EDT (Thu, 23 Jul 2009)
New Revision: 55138
URL: http://svn.boost.org/trac/boost/changeset/55138

Log:
Try to work around an odd Visual C++ 8 bug.
Text files modified:
   trunk/boost/unordered/unordered_map.hpp | 26 ++++++++++++++++++++++----
   trunk/boost/unordered/unordered_set.hpp | 24 ++++++++++++++++++++----
   2 files changed, 42 insertions(+), 8 deletions(-)

Modified: trunk/boost/unordered/unordered_map.hpp
==============================================================================
--- trunk/boost/unordered/unordered_map.hpp (original)
+++ trunk/boost/unordered/unordered_map.hpp 2009-07-23 18:17:20 EDT (Thu, 23 Jul 2009)
@@ -105,8 +105,17 @@
         unordered_map(InputIterator f, InputIterator l,
                 size_type n,
                 const hasher &hf = hasher(),
- const key_equal &eql = key_equal(),
- const allocator_type &a = allocator_type())
+ const key_equal &eql = key_equal())
+ : base(f, l, n, hf, eql, allocator_type())
+ {
+ }
+
+ template <class InputIterator>
+ unordered_map(InputIterator f, InputIterator l,
+ size_type n,
+ const hasher &hf,
+ const key_equal &eql,
+ const allocator_type &a)
             : base(f, l, n, hf, eql, a)
         {
         }
@@ -560,8 +569,17 @@
         unordered_multimap(InputIterator f, InputIterator l,
                 size_type n,
                 const hasher &hf = hasher(),
- const key_equal &eql = key_equal(),
- const allocator_type &a = allocator_type())
+ const key_equal &eql = key_equal())
+ : base(f, l, n, hf, eql, allocator_type())
+ {
+ }
+
+ template <class InputIterator>
+ unordered_multimap(InputIterator f, InputIterator l,
+ size_type n,
+ const hasher &hf,
+ const key_equal &eql,
+ const allocator_type &a)
           : base(f, l, n, hf, eql, a)
         {
         }

Modified: trunk/boost/unordered/unordered_set.hpp
==============================================================================
--- trunk/boost/unordered/unordered_set.hpp (original)
+++ trunk/boost/unordered/unordered_set.hpp 2009-07-23 18:17:20 EDT (Thu, 23 Jul 2009)
@@ -103,8 +103,16 @@
         template <class InputIterator>
         unordered_set(InputIterator f, InputIterator l, size_type n,
                 const hasher &hf = hasher(),
- const key_equal &eql = key_equal(),
- const allocator_type &a = allocator_type())
+ const key_equal &eql = key_equal())
+ : base(f, l, n, hf, eql, allocator_type())
+ {
+ }
+
+ template <class InputIterator>
+ unordered_set(InputIterator f, InputIterator l, size_type n,
+ const hasher &hf,
+ const key_equal &eql,
+ const allocator_type &a)
             : base(f, l, n, hf, eql, a)
         {
         }
@@ -530,8 +538,16 @@
         template <class InputIterator>
         unordered_multiset(InputIterator f, InputIterator l, size_type n,
                 const hasher &hf = hasher(),
- const key_equal &eql = key_equal(),
- const allocator_type &a = allocator_type())
+ const key_equal &eql = key_equal())
+ : base(f, l, n, hf, eql, allocator_type())
+ {
+ }
+
+ template <class InputIterator>
+ unordered_multiset(InputIterator f, InputIterator l, size_type n,
+ const hasher &hf,
+ const key_equal &eql,
+ const allocator_type &a)
           : base(f, l, n, hf, eql, a)
         {
         }


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