0
0
Fork 0
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:
Jason Volk 2022-07-20 12:26:56 -07:00
parent b271007fd2
commit 2d68d69b36

View file

@ -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);