
24 May
2007
24 May
'07
12:02 p.m.
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; to 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.) Thanks.