Boost logo

Boost :

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


Alexander Nasonov <alnsn <at>> 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, gregod at, cpdaniel at, john at