
1 Jun
2005
1 Jun
'05
4:57 p.m.
"Alexander Nasonov" <alnsn-boost@yandex.ru> wrote
Arkadiy Vertleyb <vertleyb <at> hotmail.com> writes:
OTOH, passing the parameter through something like:
template<class T> T make (const T&);
seems to be able to convince GCC that this is indeed an expression. So, if we define the BOOST_TYPEOF (in native mode) something like this (mpl::identity insures consistency of typename usage):
#define BOOST_TYPEOF(x) mpl::identity<__typeof__(make(x))>::type
We should be able to achieve consistency between native and emulation modes.
Are you going to include it to the library?
I think so... What would be the benefit of allowing a type to be passed to typeof? I can only see confusion, as in case with GCC. Regards, Arkadiy