mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 10:12:39 +01:00
ircd::json: Add semantics to prevent json::strung'ing itself.
This commit is contained in:
parent
b37bb580be
commit
664bee7f78
1 changed files with 2 additions and 0 deletions
|
@ -53,6 +53,8 @@ struct ircd::json::strung
|
|||
:std::string
|
||||
{
|
||||
template<class... T> strung(T&&... t);
|
||||
strung(strung &&s) noexcept: std::string{std::move(s)} {}
|
||||
strung(const strung &s): std::string{s} {}
|
||||
};
|
||||
|
||||
#include "util.h"
|
||||
|
|
Loading…
Reference in a new issue