
22 Aug
2007
22 Aug
'07
7:41 p.m.
AMDG Alexander Nasonov <alnsn <at> yandex.ru> writes:
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; }
Can't you use the same mechanism that you use to avoid typename for the plain typeof? In Christ, Steven Watanabe