[Patch] Use variadic templates for tr1::is_function
Paolo Carlini
pcarlini@suse.de
Tue Apr 10 12:53:00 GMT 2007
Hi all, hi Doug,
I'm finishing regtesting the below, which I consider better than
instantiating a lot of templates for a single trait and/or using
something like the old __in_array. Do you agree?
Besides that, I'm a little puzzled by this kind of code in tr1/functional:
/**
* @if maint
* Retrieve the result type for a function type.
* @endif
*/
template<typename _Res, typename... _ArgTypes>
struct _Weak_result_type_impl<_Res(_ArgTypes...)>
{
typedef _Res result_type;
};
and wanted to quickly double check with you that variadic functions are
left out on purpose...
Thanks,
Paolo.
//////////////
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CL_tr1_var_is_function
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20070410/4c174493/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch_tr1_var_is_function
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20070410/4c174493/attachment-0001.ksh>
More information about the Libstdc++
mailing list