1>------ Build started: Project: foreachtest, Configuration: Debug Win32 ------ 1> foreachtest.cpp 1>c:\users\jeffm\desktop\foreachtest - copy\foreachtest\foreachtest.cpp(15): error C2678: binary '=' : no operator found which takes a left-hand operand of type 'msvc_typeof_impl::msvc_extract_type::id2type_impl::type' (or there is no acceptable conversion) 1> with 1> [ 1> ID=3, 1> T=msvc_typeof_impl::msvc_extract_type_default_param 1> ] 1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\xtree(337): could be 'std::_Tree_const_iterator<_Mytree> &std::_Tree_const_iterator<_Mytree>::operator =(const std::_Tree_const_iterator<_Mytree> &)' 1> with 1> [ 1> _Mytree=std::_Tree_val,std::allocator,false>> 1> ] 1> while trying to match the argument list '(msvc_typeof_impl::msvc_extract_type::id2type_impl::type, msvc_typeof_impl::msvc_extract_type::id2type_impl::type)' 1> with 1> [ 1> ID=3, 1> T=msvc_typeof_impl::msvc_extract_type_default_param 1> ] ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========