20 Oct
2008
20 Oct
'08
4:33 p.m.
AMDG Peng Yu wrote:
You need to use BOOST_TYPEOF_TPL. http://www.boost.org/doc/libs/1_36_0/doc/html/typeof/refe.html#typeof.typo. Some compilers can handle this (I just tried it on msvc 9.0), but I strongly advise using multiply_traits as defined above for portability.
Does this mean the error that I saw is not due to a GCC bug? Or it is due to a GCC bug, but most other compilers would have the same bug so that I have to use your way as a walkaround?
It is due to a gcc bug, but other compilers have their own bugs. By portability, I meant practical portability, in so far as using multiply_traits works on a lot more compilers. In Christ, Steven Watanabe