Reuse integral_constant and enable_if in <functional>

Daniel Frey d.frey@gmx.de
Mon Jan 25 22:14:00 GMT 2010


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?

Regards, Daniel


-------------- next part --------------
A non-text attachment was scrubbed...
Name: simplify.patch
Type: application/octet-stream
Size: 4795 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20100125/43dac6bd/attachment.obj>


More information about the Libstdc++ mailing list