2006/5/13, Ilya A. Volynets-Evenbakh <ilya@total-knowledge.com>:
Alexey Parshin wrote: > 1. What for? To make the code dirty? I really hate it. Most of the > time, SPTK is used with stl ns, so it would be either sptk:: all over > the code, or stl:: .. > In any case - show me the gains.. Namespaces are for avoiding name collisions.
I don't have any name collisions in abou 140K rows using SPTK. What I'm doing wrong?
2. > a. We need two methods then, const and not const. Will add as soon > as CVS is working. Yes, that is correct. > b. Making it char requires a conversion in too many places while > achieves nothing (IMHO) try compiling following with -pedantic: long* lp=static_cast<long*>(mybuf.data())
Yeap. However - I'm using char * much more often. Something like 100 times more often? -- Alexey Parshin, http://www.sptk.net
List hosted by Total Knowledge