
24 Mar
2011
24 Mar
'11
7:58 p.m.
Hi, It seems the compiler is not seen it is inside an outer macro. In this case it seems that we need another macro e.g.BOOST_NESTED_TYPENAME. You could try to follow the protocol of adding a new macro andpropose apatch to John. An other alternative: I suspect that the nested structure is code that you generate with your macros in Boost.Local orBoost.Contract. I propose you to define a nested template template void f(T& x) { template struct s { T g() { typename boost::remove_reference::type i = 0; return i; } }; x = s().g(); } HTH, Vicente