
20 May
2005
20 May
'05
2:19 a.m.
Thorsten Ottosen wrote:
"Dave Harris" wrote in message
(Jonathan Turkanis) wrote (abridged):
Are we going to generalise it to allow any (compile-time constant) terminator?
Why does the terminator have to be a compile-time constant?
I was hesitant about suggesting a generalisation which added run-time overhead over only supporting '\0'.
can you back that up with performance measurements?
(I would expect good compilers to completely remove the overhead; C++0x compiles are likely to guarantee this)
Could you explain? I see that the fact that the default value 0 is being used will be evident at compile time, but how can the library author take advantage of this?
-Thorsten
Jonathan