[prev in list] [next in list] [prev in thread] [next in thread] 

List:       boost-users
Subject:    Re: [Boost-users] implementing a new Range
From:       Mathias Gaunard <mathias.gaunard () ens-lyon ! org>
Date:       2009-08-26 15:29:32
Message-ID: h73kcr$pjs$1 () ger ! gmane ! org
[Download RAW message or body]

Anthony Foglia wrote:
> Alex Flint wrote:
>> I'm using a math library that provides a Vector class, but it does not
>> have begin() or end() method, or any other normal container methods. I
>> would like to pass it to functions that take a Range object as a
>> parameter. How can I do this?
> 
>     I've done this once as an exercise, but not well enough to walk you 
> through it.  But the documentation's pretty straightforward, once you 
> find the right section:
> 
> http://www.boost.org/doc/libs/1_39_0/libs/range/doc/boost_range.html#method2 

I thought you could overload begin/end directly and it would get picked 
up by ADL, but it looks like it's range_begin/range_end.
That really should be changed.

_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic