From: Jonathan Wakely <jwakely.gcc@gmail.com>
To: "libstdc++" <libstdc++@gcc.gnu.org>,
gcc-patches <gcc-patches@gcc.gnu.org>
Subject: [v3] improve allocator_traits test
Date: Sat, 11 Jun 2011 15:42:00 -0000 [thread overview]
Message-ID: <BANLkTikdFGhK=1W4-ThDnV3X7jX-+=b7gw@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 217 bytes --]
2011-06-11 Jonathan Wakely <jwakely.gcc@gmail.com>
* testsuite/20_util/allocator_traits/requirements/
explicit_instantiation.cc: Add another instantiation.
Tested x86_64-linux, committed to trunk.
[-- Attachment #2: traits-inst-test.txt --]
[-- Type: text/plain, Size: 856 bytes --]
Index: testsuite/20_util/allocator_traits/requirements/explicit_instantiation.cc
===================================================================
--- testsuite/20_util/allocator_traits/requirements/explicit_instantiation.cc (revision 174931)
+++ testsuite/20_util/allocator_traits/requirements/explicit_instantiation.cc (working copy)
@@ -22,8 +22,21 @@
#include <memory>
+typedef short test_type;
+
+template<typename T>
+ struct minimal_allocator
+ {
+ typedef T value_type;
+ minimal_allocator();
+ template <typename U>
+ minimal_allocator(const minimal_allocator<U>&);
+ T* allocate(std::size_t);
+ void deallocate(T*, std::size_t);
+ };
+
namespace std
{
- typedef short test_type;
template struct allocator_traits<std::allocator<test_type>>;
+ template struct allocator_traits<minimal_allocator<test_type>>;
}
reply other threads:[~2011-06-11 15:37 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='BANLkTikdFGhK=1W4-ThDnV3X7jX-+=b7gw@mail.gmail.com' \
--to=jwakely.gcc@gmail.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=libstdc++@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).