Boost logo

Boost :

From: Steven Watanabe (steven_at_[hidden])
Date: 2007-08-22 15:41:06


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


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk