Re: while( *it == value && it != v.end() )

2007-02-14 Thread mathieu
On Feb 13, 10:07 pm, Paul Pluzhnikov <[EMAIL PROTECTED]> wrote: > "mathieu" <[EMAIL PROTECTED]> writes: > > Just to be sure I am double-checking here. > > Is there a way to make gcc produce a warning when a code is > > dereferencing an end iterator ? Or does this involve too much static > > ana

Re: while( *it == value && it != v.end() )

2007-02-13 Thread Paul Pluzhnikov
"mathieu" <[EMAIL PROTECTED]> writes: > Just to be sure I am double-checking here. > Is there a way to make gcc produce a warning when a code is > dereferencing an end iterator ? Or does this involve too much static > analysis ? The latter. You can however ask newer versions of g++ to catch