Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2003-10-20 03:29:01


Vladimir Prus <ghost_at_[hidden]> writes:

> David Abrahams wrote:
>
>> Vladimir Prus wrote:
>>
>>> Seems like the warning is correct in predicting crash?
>>
>> No, the function is never called.
>
> Are you 100% sure? When running the test program I get:
>
> (gdb) b container_algo.hpp:127
> Breakpoint 2 at 0x8065c45: file container_algo.hpp, line 127.
> (gdb) b container_algo.hpp:134
> Breakpoint 3 at 0x8065d8f: file container_algo.hpp, line 134.
> (gdb) c
> Continuing.
>
> Breakpoint 2, find_impl<std::pair<int*, int*>, int> (c=@0xbffff740,
> value=@0xbffff6dc)
> at container_algo.hpp:127
> 127 return std::find( begin( c ), end( c ), value );
> (gdb) list
> 122
> 123 template< typename C, typename T >
> 124 inline typename container_traits<C>::iterator
> 125 find_impl( C& c, const T& value, ... )
> 126 {
> 127 return std::find( begin( c ), end( c ), value );
> 128 }
>
> That's one of the function about which gcc warns.

Whoops, I was wrong. I thought we were discussing something else
here, sorry!

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

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