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:
parent
0a1bf7f47f
commit
5f70ce28d0
1 changed files with 7 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue