This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [c++0x] result_of
2008/9/30 Chris Fairles:
>
> This is purely aesthetic, but I noticed that _S_fwd_arg() in
> _Result_of_util doesn't depend on the _Callee type and hence could in
> theory be moved into the 2 _Result_of_impl classes which would avoid
> the need for the template keyword to access it through _Result_of_util
the ugly template keyword is necessary because _S_fwd_arg() itself is
a function template, not because it's a member of a class template.
Moving it to the impl classes would duplicate it, without getting rid
of the template keyword.
Thanks for looking over the patch though, I was wondering if anyone
had seen it ;-)
Jon