From 9dbaa9489f9671b98caf92c6d1f87589d4eb799d Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Mon, 1 Dec 2003 15:34:07 +0000 Subject: [PATCH] re PR libstdc++/10378 ([library DR 402] cannot add object with inplace new into STL collections) 2003-12-01 Paolo Carlini PR libstdc++/10378 * include/bits/allocator.h (allocator::construct): Implement resolution of DR 402 [Ready] (in Revision 28). * include/bits/allocator_traits.h (__allocator::construct): Likewise. * include/bits/stl_construct.h (_Construct): Likewise. * testsuite/20_util/allocator_members.cc: Move to... * testsuite/20_util/allocator/1.cc: ... here. * testsuite/20_util/allocator/10378.cc: New. * docs/html/ext/howto.html: Add an entry for DR 402. From-SVN: r74104 --- libstdc++-v3/ChangeLog | 13 ++++++ libstdc++-v3/docs/html/ext/howto.html | 6 +++ libstdc++-v3/include/bits/allocator.h | 4 +- libstdc++-v3/include/bits/allocator_traits.h | 6 ++- libstdc++-v3/include/bits/stl_construct.h | 12 ++++- .../{allocator_members.cc => allocator/1.cc} | 0 .../testsuite/20_util/allocator/10378.cc | 46 +++++++++++++++++++ 7 files changed, 82 insertions(+), 5 deletions(-) rename libstdc++-v3/testsuite/20_util/{allocator_members.cc => allocator/1.cc} (100%) create mode 100644 libstdc++-v3/testsuite/20_util/allocator/10378.cc diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 4ee7fd7967b..0a9e6729f93 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,16 @@ +2003-12-01 Paolo Carlini + + PR libstdc++/10378 + * include/bits/allocator.h (allocator::construct): Implement + resolution of DR 402 [Ready] (in Revision 28). + * include/bits/allocator_traits.h (__allocator::construct): + Likewise. + * include/bits/stl_construct.h (_Construct): Likewise. + * testsuite/20_util/allocator_members.cc: Move to... + * testsuite/20_util/allocator/1.cc: ... here. + * testsuite/20_util/allocator/10378.cc: New. + * docs/html/ext/howto.html: Add an entry for DR 402. + 2003-11-30 Paolo Carlini * config/locale/gnu/codecvt_members.cc (codecvt::do_in, diff --git a/libstdc++-v3/docs/html/ext/howto.html b/libstdc++-v3/docs/html/ext/howto.html index 82930a80e9f..c5e3e20d08c 100644 --- a/libstdc++-v3/docs/html/ext/howto.html +++ b/libstdc++-v3/docs/html/ext/howto.html @@ -694,6 +694,12 @@
Change the format string to "%.0Lf".
+ +
402: + Wrong new expression in [some_]allocator::construct +
+
Replace "new" with "::new". +