[libcxx] r221697 - Fix typo in allocator_traits::construct. This fixes PR14175, which shows up if an allocator has a no-args construct method

Marshall Clow mclow.lists at gmail.com
Tue Nov 11 11:22:33 PST 2014


Author: marshall
Date: Tue Nov 11 13:22:33 2014
New Revision: 221697

URL: http://llvm.org/viewvc/llvm-project?rev=221697&view=rev
Log:
Fix typo in allocator_traits::construct. This fixes PR14175, which shows up if an allocator has a no-args construct method

Modified:
    libcxx/trunk/include/memory

Modified: libcxx/trunk/include/memory
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/memory?rev=221697&r1=221696&r2=221697&view=diff
==============================================================================
--- libcxx/trunk/include/memory (original)
+++ libcxx/trunk/include/memory Tue Nov 11 13:22:33 2014
@@ -1450,7 +1450,7 @@ struct _LIBCPP_TYPE_VIS_ONLY allocator_t
     template <class _Tp, class... _Args>
         _LIBCPP_INLINE_VISIBILITY
         static void construct(allocator_type& __a, _Tp* __p, _Args&&... __args)
-            {__construct(__has_construct<allocator_type, pointer, _Args...>(),
+            {__construct(__has_construct<allocator_type, _Tp*, _Args...>(),
                          __a, __p, _VSTD::forward<_Args>(__args)...);}
 #else  // _LIBCPP_HAS_NO_VARIADICS
     template <class _Tp>





More information about the cfe-commits mailing list