id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 963,typeof: nested types of BOOST_TYPEOF'ed type don't work on gcc 3.4.5 in native mode,snaury@…,Peder Holt,"Example: {{{ #include #include BOOST_TYPEOF_REGISTER_TYPE(std::vector::iterator) BOOST_TYPEOF_REGISTER_TYPE(std::vector::const_iterator) int main(int argc, char** argv) { std::vector v; BOOST_TYPEOF(v)::iterator i = v.begin(); return 0; } }}} Results in an error on gcc-3.4.5 {{{ 1.cpp:9: error: expected initializer before ""i"" }}} This is because apparently you can't do typeof(v)::type in gcc 3.4.5. Workaround is very simple, but maybe it's better if this is implemented in boost.typeof itself: {{{ #include #include BOOST_TYPEOF_REGISTER_TYPE(std::vector::iterator) BOOST_TYPEOF_REGISTER_TYPE(std::vector::const_iterator) template struct ut_type_mirror { typedef T type; }; #define UT_TYPEOF(v) ut_type_mirror::type int main(int argc, char** argv) { std::vector v; UT_TYPEOF(v)::iterator i = v.begin(); return 0; } }}}",Support Requests,closed,,None,Boost 1.34.0,Problem,wontfix,nested typeof gcc,