This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: known duplicate code
>
> I'm interested in keeping a list of "can't live without" traits-like
> material such as this. I also put both the enable_if and IF traits in
> this category, though I've spelled them differently in the past. It
> could be that such an organized list might evolve into a proposed
> addition to the C++0X <type_traits> header. If it were to succeed, it
> would have to be a very short list. I.e. this can't turn into a dumping
> ground for everyone's favorite trait. This is a top 5 list.
>
Wow, I didn't even think that was still possible.
Those two would be very good to have. I'd suggest swapping the order of
the template parameters of enable_if so that the bool is first as in IF,
cond_type, whatever you want to call it.
Thanks, Peter
> -Howard