
Dominique Devienne wrote:
On Thu, Sep 25, 2025 at 10:34 AM Klemens Morgenstern via Boost <boost@lists.boost.org> wrote:
1. a type-safe alternative to const char * (no size_t)
What's not type-safe about `const char*`?
2. a std::string_view that guarantees a null at the end (with size_t)
That one is useful for a Boost.SQLite wrapper.
But not with a no-embedded-null requirement, as SQLite is just fine storing those.
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. (I'm using zstring_view for the name because the standard proposal https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2025/p3655r2.html does so.)