diff options
Diffstat (limited to 'libstdc++-v3/include/bits/stl_uninitialized.h')
-rw-r--r-- | libstdc++-v3/include/bits/stl_uninitialized.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/libstdc++-v3/include/bits/stl_uninitialized.h b/libstdc++-v3/include/bits/stl_uninitialized.h index 246d5c3..ff0495b 100644 --- a/libstdc++-v3/include/bits/stl_uninitialized.h +++ b/libstdc++-v3/include/bits/stl_uninitialized.h @@ -241,8 +241,9 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION _ForwardIterator __cur = __result; __try { + typedef __gnu_cxx::__alloc_traits<_Allocator> __traits; for (; __first != __last; ++__first, ++__cur) - __alloc.construct(std::__addressof(*__cur), *__first); + __traits::construct(__alloc, std::__addressof(*__cur), *__first); return __cur; } __catch(...) @@ -290,8 +291,9 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION _ForwardIterator __cur = __first; __try { + typedef __gnu_cxx::__alloc_traits<_Allocator> __traits; for (; __cur != __last; ++__cur) - __alloc.construct(std::__addressof(*__cur), __x); + __traits::construct(__alloc, std::__addressof(*__cur), __x); } __catch(...) { @@ -315,8 +317,9 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION _ForwardIterator __cur = __first; __try { + typedef __gnu_cxx::__alloc_traits<_Allocator> __traits; for (; __n > 0; --__n, ++__cur) - __alloc.construct(std::__addressof(*__cur), __x); + __traits::construct(__alloc, std::__addressof(*__cur), __x); } __catch(...) { @@ -556,8 +559,9 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION _ForwardIterator __cur = __first; __try { + typedef __gnu_cxx::__alloc_traits<_Allocator> __traits; for (; __cur != __last; ++__cur) - __alloc.construct(std::__addressof(*__cur)); + __traits::construct(__alloc, std::__addressof(*__cur)); } __catch(...) { @@ -585,8 +589,9 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION _ForwardIterator __cur = __first; __try { + typedef __gnu_cxx::__alloc_traits<_Allocator> __traits; for (; __n > 0; --__n, ++__cur) - __alloc.construct(std::__addressof(*__cur)); + __traits::construct(__alloc, std::__addressof(*__cur)); } __catch(...) { |