Boost logo

Boost :

From: Eric Niebler (eric_at_[hidden])
Date: 2006-06-19 14:43:48

Gennadiy Rozental wrote:
> "Stephan Tolksdorf" <andorxor_at_[hidden]> wrote in message
>>Including "boost/test/included/unit_test.hpp" from the current SVN
>>version also causes min and max macros to be defined on Windows (by
>>headers pulled in from execution_monitor.ipp). Not being an expert on
>>min/max macro issues, I wonder if this is necessary, or if the macro
>>could be prevented from leaking to user code (without the user defining
> I am not quite sure what you are complaining about. Boost.Test doesn't
> define these macro nor it could undefine them. If you do not want to be
> exposed to system level headers use offline component.

Just to clarify, all Boost libraries aim for complete neutrality
regarding the min/max macros. They should compile cleanly regardless of
whether the macros are defined or not, and should neither cause them to
be defined (unless they must include system headers which define them)
or undefine them.


Eric Niebler
Boost Consulting

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