[reSIProcate] Does this is Data class bug ?

Karlsson boost.regex at gmail.com
Fri Nov 28 10:23:04 CST 2008


thanks, I think it likes stringstream ago. Now I'm clear.

On Sat, Nov 29, 2008 at 12:07 AM, Theo Zourzouvillys <theo at voip.co.uk>wrote:

> On Fri, Nov 28, 2008 at 11:43 AM, Karlsson <boost.regex at gmail.com> wrote:
> >  host += port;
>
> take a look at the 3 signatures for operator+= on Data:
>
> theo at syndev-03 ~ $ grep 'operator+=' /usr/include/rutil/Data.hxx
>      Data& operator+=(const Data& rhs);
>      Data& operator+=(const char* str);
>      Data& operator+=(char c);
>
> the compiler will be converting operator+=(int) to operator+=(char),
> which will eb the same as calling operator+=(-112).
>
>  ~ Theo
>
> --
> Theo Zourzouvillys
> Chief Technical Officer
> VoIP.co.uk <http://voip.co.uk/> - Commerce House, Telford Road, Bicester,
> OX26 4LD
> Tel: +44 1908 764 196
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.resiprocate.org/pipermail/resiprocate-devel/attachments/20081129/1f204b34/attachment.htm>


More information about the resiprocate-devel mailing list