This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
... 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)
/** * @if maint * We already know the result type for @c Functor; use it. * @endif */ template<typename _Functor, typename... _ArgTypes> struct _Result_of_impl<true, _Functor(_ArgTypes...)> { typedef typename _Weak_result_type<_Functor>::result_type type; };
Cheers, Doug
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |