|
Boost : |
From: Vinnie Falco (vinnie.falco_at_[hidden])
Date: 2019-09-13 23:19:40
Is that a big deal? I dont think so
...
On Fri, Sep 13, 2019, 3:58 PM Ion Gaztañaga via Boost <boost_at_[hidden]>
wrote:
> On 13/09/2019 14:43, Vinnie Falco via Boost wrote:
> > On Fri, Sep 13, 2019 at 3:28 AM <julien.blanc_at_tgcm.eu> wrote:
> >> Why not use a static_vector<char> ?
> >
> > static_vector is missing all of the string-oriented algorithms.
> >
> >> There is a cost associated with maintaining the null termination of
> strings
> >
> > Yeah, that's easily fixed. We can add the function
> > fixed_capacity_string::c_str() which will put the terminator on and
> > return a pointer, this way the mutating operations do not need to
> > always leave the string in a null terminated state.
>
> But then c_str() would not be "const noexcept".
>
> Best,
>
> Ion
>
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost
>
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk