This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: c++0x tests fixes
- From: Paolo Carlini <pcarlini at gmail dot com>
- To: FranÃois Dumont <francois dot cppdevs at free dot fr>
- Cc: Jonathan Wakely <jwakely dot gcc at gmail dot com>, "libstdc++ at gcc dot gnu dot org" <libstdc++ at gcc dot gnu dot org>
- Date: Wed, 1 Dec 2010 22:00:16 +0100
- Subject: Re: c++0x tests fixes
- References: <4CF40FDF.7080201@free.fr> <4CF41EF0.7020103@oracle.com> <AANLkTinR77K9FbnSUBU9-bSp1QyyA8EaB7Y3HMJU8VaN@mail.gmail.com> <4CF43F3C.5050200@oracle.com> <4CF6B35E.6070001@free.fr>
Hi,
> So I would simply propose to hide the explicit instantiation with a #ifndef __GLIBCXX_EXPERIMENTAL_CXX0X__.
>
> Ok ?
Sure. I would suggest also adding a one line comment about the issue, checking that is consistent with a related comment in an instantiation test for std::map (which I added when I noticed that in c++03 std::map is the only container which cannot be explicitly instantiated for non-DefaultConstructible mapped type because of operator[])
Paolo