0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2025-01-16 09:36:54 +01:00

ircd::util: Document string_view::insert().

This commit is contained in:
Jason Volk 2017-04-02 20:50:32 -07:00
parent 0a1bf7f47f
commit 5f70ce28d0

View file

@ -570,7 +570,13 @@ struct string_view
:std::string_view
{
// (non-standard) our faux insert stub
void insert(const iterator &, const char &) { assert(0); } //XXX
// Tricks boost::spirit into thinking this is mutable string (hint: it's not).
// Instead, the raw[] directive in Qi grammar will use the iterator constructor only.
// __attribute__((error("string_view is not insertable (hint: use raw[] directive)")))
void insert(const iterator &, const char &)
{
assert(0);
}
// (non-standard) our iterator-based assign
string_view &assign(const char *const &begin, const char *const &end)