|
Boost Users : |
From: John Maddock (john_at_[hidden])
Date: 2004-03-15 08:22:14
> I am using version 1.31.0 of the Boost library together with version 2.33
of the Dinkumware STL library, and I get the following compilation error
(from VC6 SP5):
>
> c:\temp\boost_1_31_0\boost\config\suffix.hpp(296) : error C2995: 'min' :
template function has already been defined
> t:\sxl\include\xutility(582) : see declaration of 'min'
> c:\temp\boost_1_31_0\boost\config\suffix.hpp(300) : error C2995: 'max' :
template function has already been defined
> t:\sxl\include\xutility(572) : see declaration of 'max'
>
> If I comment out the line that defines BOOST_NO_STD_MIN_MAX in
config\stdlib\dinkumware.hpp, as shown in the diff below, then everything
works fine.
My understanding is that BOOST_NO_STD_MIN_MAX is required for VC6, when used
with VC6's original std lib, so I guess you have purchased a more recent
version from Dinkumware? If so, is there any way that we can detect that
version rather than the original?
Thanks,
John.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net