This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Reuse integral_constant and enable_if in <functional>
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: Daniel Frey <d dot frey at gmx dot de>
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Tue, 26 Jan 2010 01:12:51 +0000
- Subject: Re: Reuse integral_constant and enable_if in <functional>
- References: <9EBE4B6C-81AD-47AA-A8C0-4251EAFBDAC0@gmx.de>
On 25 January 2010 21:46, Daniel Frey wrote:
> While reading through <functional>, I wondered why is_bind_expression and is_placeholder do not use integral_constant. Also, I wondered why __gnu_cxx::__enable_if was used instead of enable_if. The attached patch reflects these changes. In case the latter (enable_if) is accepted, it may also be possible to remove the include for ext/type_traits.h, right? Or is there any other reason why it's there?
That header was only recently split from tr1/functional, so it didn't
rely on integral_constant or enable_if, which were not defined when it
was included in TR1 mode. Now that we have a separate file for the
C++0x version it should be changed. Thanks for taking care of it.