Boost logo

Boost :

From: Markus Schöpflin (markus.schoepflin_at_[hidden])
Date: 2007-10-24 04:29:55


Hello,

offset_ptr.hpp:291 contains the following code for operator>>:

template<class E, class T, class Y>
inline std::basic_istream<E, T> & operator>>
    (std::basic_istream<E, T> & os, offset_ptr<Y> & p)
{ Y * tmp; return os >> tmp; p = tmp; }

The last assignment is never executed as there is a return statement before
it. This smells fishy.

Regards,
Markus


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