[Boost Test] request BOOST_*_CLOSE_COLLECTIONS

It would be nice to be able to check collections for 'close-ness' as well as equality, whilst there I guess 'small-ness' would be good too. I just ran into this again in some of our code, of course I can roll my own loop... Thanks Kevin -- | Kevin Wheatley, Cinesite (Europe) Ltd | Nobody thinks this | | Senior Technology | My employer for certain | | And Network Systems Architect | Not even myself |

Kevin Wheatley escreveu:
It would be nice to be able to check collections for 'close-ness' as well as equality, whilst there I guess 'small-ness' would be good too.
I just ran into this again in some of our code, of course I can roll my own loop...
Maybe this could actually be added as a "runtime" extra component to the concept checking library. -- Pedro Lamarão

"Pedro Lamarão" <pedro.lamarao@intersix.com.br> wrote in message news:epdc2o$7rh$2@sea.gmane.org... Kevin Wheatley escreveu:
It would be nice to be able to check collections for 'close-ness' as well as equality, whilst there I guess 'small-ness' would be good too.
I just ran into this again in some of our code, of course I can roll my own loop...
Maybe this could actually be added as a "runtime" extra component to the concept checking library.
I am not sure what that means. Gennadiy

Gennadiy Rozental escreveu:
"Pedro Lamarão" <pedro.lamarao@intersix.com.br> wrote in message news:epdc2o$7rh$2@sea.gmane.org... Kevin Wheatley escreveu:
It would be nice to be able to check collections for 'close-ness' as well as equality, whilst there I guess 'small-ness' would be good too.
I just ran into this again in some of our code, of course I can roll my own loop... Maybe this could actually be added as a "runtime" extra component to the concept checking library.
I'm sorry, maybe it is I didn't understand the original poster. I was thinking that, say, checking that for a given Sequence it's actually true that [begin(), end()) is a valid interval could be added to the concept checking library, which currently tests only those things testable at compile time. -- Pedro Lamarão

"Pedro Lamarão" <pedro.lamarao@intersix.com.br> wrote in message news:epdmbs$r8c$1@sea.gmane.org...
I'm sorry, maybe it is I didn't understand the original poster.
I was thinking that, say, checking that for a given Sequence it's actually true that [begin(), end()) is a valid interval could be added to the concept checking library, which currently tests only those things testable at compile time.
My understanding that concepts are intended to be validated at compile time. Gennadiy

"Kevin Wheatley" <hxpro@cinesite.co.uk> wrote in message news:epd7nh$asi$1@sea.gmane.org...
It would be nice to be able to check collections for 'close-ness' as well as equality, whilst there I guess 'small-ness' would be good too.
I just ran into this again in some of our code, of course I can roll my own loop...
It's possible. I will see what could be done Gennadiy
participants (3)
-
Gennadiy Rozental
-
Kevin Wheatley
-
Pedro Lamarão