Boost logo

Boost :

Subject: [boost] [scope_exit] C++11 freely uses typename (on MSVC10?)
From: lcaminiti (lorcaminiti_at_[hidden])
Date: 2012-04-02 13:53:12


Hi all,

Isn't it C++11 supposed to allow to use typename freely even outside
type-dependent context? Does MSVC10 support this?

For example, is the following supposed to compile on MSVC10?

#include <boost/mpl/identity.hpp>

int main() {
    typedef typename boost::mpl::identity<int>::type t;
    t i = 0;
    return i;
}

Note: Using typename freely will allow me to not introduce
SCOPE_EXIT_ALL_TPL and still support this_ (not just this).

Thanks.
--Lorenzo

--
View this message in context: http://boost.2283326.n4.nabble.com/boost-scope-exit-C-11-freely-uses-typename-on-MSVC10-tp4526741p4526741.html
Sent from the Boost - Dev mailing list archive at Nabble.com.

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk