
25 Sep
2025
25 Sep
'25
11:18 a.m.
On Thu, Sep 25, 2025 at 11:13 AM Peter Dimov via Boost <boost@lists.boost.org> wrote:
Dominique Devienne wrote:
On Thu, Sep 25, 2025 at 10:34 AM Klemens Morgenstern via Boost <boost@lists.boost.org> wrote:
2. a std::string_view that guarantees a null at the end (with size_t) That one is useful for a Boost.SQLite wrapper.
After giving this some thought, I think that both zstring_view classes (one that enforces no embedded nulls, and one that doesn't) are useful for different things and probably should be provided.
Makes sense. Note that specifically in the Boost.SQLite case, size_t where it's 64-bit is wasteful, as SQLite blob/text is limited to 1GB by default, and can't exceed 2GB when raising the limit at build time, AFAIK.