Don't use allocator to construct/destroy anything other than elements.

As specified in 23.2.1.3.
This commit is contained in:
Daniel James
2014-07-12 19:12:46 +01:00
parent 2216c987a0
commit 2f5d98a0cd
4 changed files with 16 additions and 12 deletions

View File

@@ -239,5 +239,8 @@ C++11 support has resulted in some breaking changes:
* Avoid some warnings ([ticket 8851], [ticket 8874]).
* Avoid exposing some detail functions via. ADL on the iterators.
* Follow the standard by only using the allocators' construct and destroy
methods to construct and destroy stored elements. Don't use them for internal
data like pointers.
[endsect]