Boost logo

Boost :

From: Jonathan Turkanis (technews_at_[hidden])
Date: 2005-05-19 21:19:39


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


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk