Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2003-03-24 19:31:26


"Lapshin, Kirill" <Kirill.Lapshin_at_[hidden]> writes:

>>> The interesting part that it fails to compile even when there is no
>>> instantiation of the template.
>>>
>>>
>>>
>>> In random library this assertion is within #ifndef
>>> BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS #endif directives.
>
>>That makes no sense. That macro is defined for msvc6 IIRC.
>
> No it is not.

Sorry, I guess I was thinking of VC6/STLPort4.1
Please ignore my inane drivel.

> Defining this macro prior to including any boost headers solves the problem,
> config/compiler/visualc.hpp does not have such define. Also as I said before
> I was trying few tricks from detail/numeric_traits.hpp, and one of the
> reasons why I suggested to put this define is that I've seen similar one in
> there. For instance line 84 of detail/numeric_traits.hpp reads:
>
> #if defined(BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS) || defined(BOOST_MSVC)
> && BOOST_MSVC <= 1300

Hmm. I think your patch is OK now. Of course I've been wrong at least
once today already... ;-)

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