
"John Torjo" <john.lists@torjo.com> wrote in message news:419091AE.60903@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