Boost logo

Boost :

Subject: Re: [boost] [range] strange behavior of operator== with iterator_range
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2011-05-18 19:18:38


On 05/18/2011 02:25 PM, Bryce Lelbach wrote:
> Can someone tell me if the behavior demonstrated in the following program is
> intentional or a bug in Boost.Range?

It seems to be the expected behaviour.

"foo" is the range {'f', 'o', 'o', '\0'}
If you want {'f', 'o', 'o'}, use boost::as_literal("foo").


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