Boost logo

Boost :

From: Thorsten Ottosen (nesotto_at_[hidden])
Date: 2004-11-12 16:48:23


"John Torjo" <john.lists_at_[hidden]> wrote in message
news:419091AE.60903_at_torjo.com...
| Hi Thorsten,

| > 6. from some of the sorce files, you seems to be using r.begin() instead
of
| > begin(r).
|
| I need to thoroughly think about this.

why? Don't you want to use boost.range as the infrastructure?

| > 8. have you thought about flags for error-strategies:
| >
| > find<or_throw>( v, 5 );
| > find( v, 5 );
| > find<to_end,or_throw>( v, 5 );
| >
|
| First of all, I think adding more than one template flags might be very
| hard to implement.
|
| Now, on the other side, if others are ok with this, I could certainly
| implement it. I donot see much value in the 'or_throw' strategy, since
| the same could be accomplished like this:
|
| if ( !find(v,5) ) throw "whatever";
|
| What do others think? What other strategies are there?

I guess the fact that it is now easy to check the return type as a boolean
makes it easier.
If we get back an iterator, we would have to do the clumsy != x.end().

-Thorsten


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