
3 Mar
2009
3 Mar
'09
3:33 p.m.
Ingo.Loehken:
hi, anybody able to explain, why the code for the result type, related to special calling conventions defines an void return type ?
template< class R, class T > struct add_cref< R (T::*) (), 1 > { typedef void type; };
This specialization's only purpose is to avoid the warning; whether the type is void or something else doesn't matter. Ironically, it doesn't work on recent versions on MSVC due to a compiler bug.