[cfe-commits] [libcxx] r131485 - /libcxx/trunk/include/scoped_allocator

Howard Hinnant hhinnant at apple.com
Tue May 17 13:41:18 PDT 2011


Author: hhinnant
Date: Tue May 17 15:41:18 2011
New Revision: 131485

URL: http://llvm.org/viewvc/llvm-project?rev=131485&view=rev
Log:
Fix ambiguity in operator== of scoped_allocator_adaptor.

Modified:
    libcxx/trunk/include/scoped_allocator

Modified: libcxx/trunk/include/scoped_allocator
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/scoped_allocator?rev=131485&r1=131484&r2=131485&view=diff
==============================================================================
--- libcxx/trunk/include/scoped_allocator (original)
+++ libcxx/trunk/include/scoped_allocator Tue May 17 15:41:18 2011
@@ -547,11 +547,11 @@
     return __a.outer_allocator() == __b.outer_allocator();
 }
 
-template <class _OuterA1, class _OuterA2, class... _InnerAllocs>
+template <class _OuterA1, class _OuterA2, class _InnerA0, class... _InnerAllocs>
 inline _LIBCPP_INLINE_VISIBILITY
 bool
-operator==(const scoped_allocator_adaptor<_OuterA1, _InnerAllocs...>& __a,
-           const scoped_allocator_adaptor<_OuterA2, _InnerAllocs...>& __b)
+operator==(const scoped_allocator_adaptor<_OuterA1, _InnerA0, _InnerAllocs...>& __a,
+           const scoped_allocator_adaptor<_OuterA2, _InnerA0, _InnerAllocs...>& __b)
 {
     return __a.outer_allocator() == __b.outer_allocator() &&
            __a.inner_allocator() == __b.inner_allocator();





More information about the cfe-commits mailing list