
22 Aug
2007
22 Aug
'07
5:24 p.m.
Alexander Nasonov <alnsn <at> yandex.ru> writes:
Function type if better:
int& (*result_tag)() = 0; typedef result_of<BOOST_TYPEOF(result_tag)>::result_type result_type;
Actually, this contruct has a limitation too. In some cases, typename is required: template<class T> void foo() { T& (*function_tag)() = 0; typedef typename remove_reference<BOOST_TYPEOF(function_tag)>::type sig; } -- Alexander