Boost logo

Boost :

Subject: Re: [boost] [Boost-users] [1.50.0] Boost release 1.50.0 available
From: Eric Niebler (eric_at_[hidden])
Date: 2012-06-29 13:51:47

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

Boost list run by bdawes at, gregod at, cpdaniel at, john at