id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 2851,BOOST_FOREACH problem with Intel compiler,s.goehler@…,Eric Niebler,"Hello, when compiling one of our applications with the Intel Compiler 11.0.072, I experienced a problem with local non-pointer variables. There are actually two workarounds to this: - change line 53 of foreach.hpp from BOOST_WORKAROUND(BOOST_INTEL_WIN, <= 810) to BOOST_WORKAROUND(BOOST_INTEL_WIN, <= 1400) - make in the example file the vector ""ItemContainer mCollection"" a pointer: ""ItemContainer *mCollection;"" and adress the object itself in the BOOST_FOREACH-macro Obviously, a workaround is no fix; so here the compiler output: Compiler output: 1>Compiling with Intel(R) C++ 11.0.072 [IA-32]... (Intel C++ Environment) 1>boost_bug.cpp 1>.\boost_bug.cpp(21): error: operand types are incompatible (""boost::foreach_detail_::rvalue_probe"" and ""const TestClass::ItemContainer"") 1> BOOST_FOREACH (Item* n, mCollection) 1> ^ Please let me know if you can re-create the problem and if you can fix it. Sincerely, Stefan Göhler",Bugs,closed,Boost 1.39.0,foreach,Boost 1.38.0,Regression,fixed,,