Re: cString operator= with same buffer

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> I think something should be done to fix the "assign cString to itself"
> case, even though this is very unlikely. This does go wrong with the
> current code, even with the copy constructor added.

Okay, now as all seems to be said, here is a patch that checks for that case 
(that may happen when working with references/pointers to cStrings), leaving 
Klaus with the decision whether it's useful to have it or not.

Greetings
Holger
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vdr-cstring-equalrefs.diff
Type: text/x-diff
Size: 357 bytes
Desc: not available
Url : http://www.linuxtv.org/pipermail/vdr/attachments/20051122/462efe64/vdr-cstring-equalrefs-0001.bin

[Index of Archives]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Big List of Linux Books]     [Fedora Users]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux