This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: std::is_pod vs std::tr1::is_pod and void type
- From: Paolo Carlini <paolo dot carlini at oracle dot com>
- To: Mateusz Loskot <mateusz at loskot dot net>
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Sun, 15 Nov 2009 10:53:17 +0100
- Subject: Re: std::is_pod vs std::tr1::is_pod and void type
- References: <4AFF7380.1030405@loskot.net>
Mateusz Loskot wrote:
> Hi,
>
> I'm calling with is_pod and has_trivial_destructor against void type
> and depending on which namespace the traits come from, they give
> different results:
>
Yes, if you look at N1836, the specifications for the the TR1 features,
you will see that it mandates true for is_pod<void>, etc. Arguably this
is a defect, which has been fixed in the ongoing work for the next
standard, so-called C++0x. In general, we consider TR1 essentially
frozen at this time and minimally maintained, consider that it was just
an interim Technical Report.
Paolo.