mirror of
https://github.com/matrix-construct/construct
synced 2024-06-01 01:28:54 +02:00
ircd::string_view: Attribute noreturn on insert() stub under proper conditions.
This commit is contained in:
parent
b271007fd2
commit
2d68d69b36
|
@ -125,6 +125,9 @@ struct ircd::string_view
|
|||
// 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)")))
|
||||
#if !defined(NDEBUG) && !defined(RB_ASSERT)
|
||||
[[noreturn]]
|
||||
#endif
|
||||
void insert(const iterator &, const char &)
|
||||
{
|
||||
assert(0);
|
||||
|
|
Loading…
Reference in a new issue