Boost logo

Boost :

From: Minmin Gong (gongminmin_at_[hidden])
Date: 2007-05-24 08:02:41

Hi all.
Does Boost.Typeof work with MinGW in a little complex situation? I test
it with this:

#include <boost/typeof/typeof.hpp>
#include <vector>

using namespace std;

int main()
        std::vector<int> v;
        BOOST_TYPEOF(v)::value_type i;

It failed. But if the line 9 is changed from
BOOST_TYPEOF(v)::value_type i;
typedef BOOST_TYPEOF(v) v_type;
v_type::value_type i;
It works.

My question is why BOOST_TYPEOF(v)::value_type is not supported?
I'm using MinGW with gcc 4.1.2. (3.4.2 fails too. But vc8 is OK.)

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