|
Boost : |
From: Ion Gaztañaga (igaztanaga_at_[hidden])
Date: 2007-10-24 15:21:09
Markus Schöpflin escribió:
> 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.
You are right. Changed with:
{ return os >> p.get(); }
>
> Regards,
> Markus
Ion
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk