Boost logo

Boost :

Subject: Re: [boost] unordered_map failing to compile on MSVC7.1 using STLport
From: Robert Dailey (rcdailey_at_[hidden])
Date: 2012-02-16 18:14:09


On Thu, Feb 16, 2012 at 3:39 PM, Daniel James <dnljms_at_[hidden]> wrote:

> 2012/2/14 Ion Gaztañaga <igaztanaga_at_[hidden]>:
> > El 14/02/2012 23:50, Ion Gaztañaga escribió:
> >
> >> El 14/02/2012 19:00, Robert Dailey escribió:
> >>
> >>>> Unfortunately it does print 1 for me :(
> >>>>
> >>>
> >>> Anyone know of a way to fix this for MSVC 7.1?
> >>
> >>
> >> There is a allocator_traits class in Boost.Container that worksin
> >> MSVC7.1
> >
> >
> > Just a note, the implementation was committed for Boost 1.49.
>
> I've changed unordered in trunk to use it for old versions of visual
> c++. Although it's untested and I've no idea if it'll work. It should
> be possible to just copy the relevant header into boost 1.48. It's at:
>
>
> http://svn.boost.org/svn/boost/trunk/boost/unordered/detail/allocator_helpers.hpp

I replaced my allocator_helpers.hpp with yours and I get:

C:\Code\work\cmake-gfe-dev\build-vc7\third_party\boost\1.48.0\include\boost\unordered\detail\allocator_helpers.hpp(47)
: fatal error C1083: Cannot open include file:
'boost/container/allocator/allocator_traits.hpp': No such file or directory


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk