Problem using Boost with Dinkumware STL library
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.
participants (2)
-
Darren Cox
-
John Maddock