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
> news:449425F6.3030508_at_gmx.de...
>
>>Hi
>>
>>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
>>NOMINMAX).
>
> 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.

See:
http://boost.org/more/lib_guide.htm

-- 
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