Boost logo

Boost Users :

From: Eric Niebler (eric_at_[hidden])
Date: 2005-03-11 02:09:20


Michael W Daniels wrote:
> In experimenting with the new BOOST_FOREACH header, I'm getting the
> compile error (MSVC 7.1) below with this code. The documentation for
> BOOST_FOREACH says:
>
>> The support for STL containers is very general; anything that looks
>> like an STL container counts. If it has nested iterator and
>> const_iterator types and begin() and end() member functions,
>> BOOST_FOREACH will automatically know how to iterate over it.
>
>
> I've checked, and the hashed_array_tree class does have nested iterator
> and const_iterator types, as well as begin() and end() member functions.
> (It's originally from www.cphstl.dk, but that site no longer provides
> the code.)
>

It's impossible to say, since I don't know how hashed_array_tree is
defined and I don't have a way to find out. If you could post a minimal,
complete example that reproduces the problem, I could probably tell you
what's wrong.

-- 
Eric Niebler
Boost Consulting
www.boost-consulting.com

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