|
Boost Users : |
Subject: Re: [Boost-users] Strange error while using BOOST_FOREACH
From: John M. Dlugosz (mpbecey7gu_at_[hidden])
Date: 2012-03-11 22:39:51
On 3/11/2012 6:10 AM, Nathan Ridge wrote:
>
> Have you tried instantiating the range_const_iterator and range_mutable_iterator
> metafunctions with the relevant types and checking that they actually have
> ::type members?
>
> That is, do
>
> typedef range_const_iterator<your_range>::type T1;
>
> and
>
> typedef range_mutable_iterator<your_range>::type T2;
>
> compile?
>
> Regards,
> Nate
>
By 'your_range' I suppose that means the collection type I was trying to use in the FOREACH.
I get an error for T1.
My collection does not have a const iterator defined for it. I suppose that bothers the
machinery in FOREACH even though I'm not asking for one here?
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