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).


View this message in context:
Sent from the Boost - Dev mailing list archive at

Boost list run by bdawes at, gregod at, cpdaniel at, john at