$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: John Nagle (nagle_at_[hidden])
Date: 2004-05-13 11:23:39
David Abrahams wrote:
> John Nagle <nagle_at_[hidden]> writes:
> 
> 
>>    If you're willing to accept a call to "new", you can just
>>use std::string and reserve some initial size.  
    Char_string should truncate and maintain
null-termination for the C-type operations, including 
        strcat
        strcopy
        sprintf
        etc.
An exception should only occur for explicit subscripting
out of range:
        char_string s<10>;
        s[11] = 'x';
Remember, a major purpose of char_string is to stop buffer
overflow attacks.  It's primarily for retrofit to old
code.  New code should use <string>.
This should be a simple, all-inline, no library .hpp
file.  
                                John Nagle
                                Animats