Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes:

| >>>>> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes:
| 
| Angus> Jean-Marc Lasgouttes wrote:
| >> I have a different idea right now: since ParagraphList is a vector,
| >> can't we just say that pit = &par - &pars_[0]; ?
| 
| Angus> I'm not saying that would be a bad thing to do, but would note
| Angus> that the fact that ParagraphList is a std::vector is meant to
| Angus> be an implementation detail...
| 
| I thought about that :) 
| 
| So, I guess boost has an answer for us, or boost would not be boost...

find_if with some fancy binding, I'll find it elsewhere in the code...

it is not bad to create a helper function even if used only one
place...

it something tries to find something... call it "find"

-- 
        Lgb

Reply via email to