
29 Jun
2012
29 Jun
'12
5:51 p.m.
On 6/29/2012 5:36 AM, Sergiu Dotenco wrote:
Boost.Foreach causes compilation errors when using Microsoft Visual Studio 10. The issue can be resolved by adding
#include <boost/utility/enable_if.hpp>
to boost/for_each.hpp.
I'm not seeing that. The following program compiles cleanly for me on VC10. #include <boost/foreach.hpp> int main() {} The only place enable_if is used in foreach.hpp is conditionally guarded by a macro, and #include <boost/utility/enable_if.hpp> is conditionally guarded by the same macro. Can you send a minimal program that demonstrates the error? -- Eric Niebler BoostPro Computing http://www.boostpro.com