[typeof] failed to compile under dependent context
3 Apr
2014
3 Apr
'14
6:56 a.m.
hi, list here is some code failed to compile with msvc9. Not sure if it is wrong use case or bug. template<class T> struct A { static T apply() { return T(); } }; template<class T> struct B { typedef BOOST_TYPEOF_TPL(A<T>::apply()) type; // error C2064: term does not evaluate to a function taking 0 arguments }; template<class T> BOOST_TYPEOF_TPL(A<T>::apply()) foo2() // error C2064: term does not evaluate to a function taking 0 arguments { } template<class T> void foo1() { BOOST_TYPEOF_TPL(A<T>::apply()) t; // ok } Regards, zsj -- View this message in context: http://boost.2283326.n4.nabble.com/boost-typeof-failed-to-compile-under-depe... Sent from the Boost - Dev mailing list archive at Nabble.com.
3890
Age (days ago)
3890
Last active (days ago)
1 comments
2 participants
participants (2)
-
feverzsj
-
Steven Watanabe