Boost logo

Boost :

From: Eric Niebler (eric_at_[hidden])
Date: 2004-05-18 19:26:55


Ian Baxter wrote:
> Boosters,
>
> Microsoft's macro hacks in the iso646.h header unfortunately kills the
> current MPL implementation. The headers or.hpp, and.hpp are substituted as
> ||.hpp, &&.hpp! Since the iso646.h header is typically force included at the
> project level, header re-arranging is not a practical solution.
> Any possibility of getting these headers renamed?
>

I don't think changing the header names is the right solution. Since
you're on VC7, you can use the push_macro and pop_macro pragmas to work
around the issue.

// file: or_.hpp
#pragma once
#pragma push_macro("or")
#include <boost/mpl/or.hpp>
#pragma pop_macro("or")

-- 
Eric Niebler
Boost Consulting
www.boost-consulting.com

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk