Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost.Beast includes CRLF in HTTP fields
From: David Demelier (markand_at_[hidden])
Date: 2018-07-08 07:47:27


On Sat, 2018-07-07 at 13:48 -0400, Daniel Anderson wrote:
> Why do you use data() without using size()/length() ?
>
> with string_view this is a recipe for hard to find bugs.
>

Because at that time I didn't know that it was not null terminated and
I needed a way to convert the boost::string_view to std::string because
I need to make a copy of the Beast's result.

Regards

-- 
David

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