This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: testsuite allocators patch
- From: François Dumont <frs dot dumont at gmail dot com>
- To: Jonathan Wakely <jwakely at redhat dot com>
- Cc: "libstdc++ at gcc dot gnu dot org" <libstdc++ at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 26 Jun 2014 22:45:44 +0200
- Subject: Re: testsuite allocators patch
- Authentication-results: sourceware.org; auth=none
- References: <53A49B7C dot 5080506 at gmail dot com> <53AB276F dot 10806 at gmail dot com> <20140626103353 dot GA1725 at redhat dot com>
On 26/06/2014 12:33, Jonathan Wakely wrote:
The _GLIBCXX_USE_NOEXCEPT macro expands to nothing in C++03 mode, so
you might as well omit it in the #else branch.
OK for trunk if you make the tracker_allocator comment correct.
Thanks!
Committed with:
// An allocator facade that intercepts
allocate/deallocate/construct/destroy
// calls and track them through the tracker_allocator_counter class. This
// class is templated on the target object type, but tracker isn't.
template<typename T, typename Alloc = std::allocator<T> >
class tracker_allocator : public Alloc
Thanks for feedback.
François