[Patch] Use variadic templates for tr1::is_function

Paolo Carlini pcarlini@suse.de
Tue Apr 10 19:55:00 GMT 2007


... but then why we have:

  /**
   * @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;
    };

in the first place? Does it ever trigger? (Still, the other 
specializations, for function pointers and references, should be added 
of a version for variadic functions, I think)

Paolo.



More information about the Libstdc++ mailing list