Boost logo

Boost Users :

From: shunsuke (pstade.mb_at_[hidden])
Date: 2008-01-17 04:59:58


Pavol Droba wrote:
> Hi,
>
> shunsuke wrote:
>> Pavol Droba wrote:
>>> Not necessary. Why couldn't we take the whole array as a string when no
>>> null character is present?
>> It means as_literal will not have constant complexity?
>>
>
> as_literal doesn't have contant complexity even now, since it works with
> c-strings. It has constant complexity only in case of arrays and that's
> only because the implementation is wrong.

If so, as_literal should have been named as "as_c_str", IMO.

Regards,

-- 
Shunsuke Sogame

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net