mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 10:12:39 +01:00
ircd::json: Move max_string_size constant to header.
This commit is contained in:
parent
b899a1dc24
commit
ab6672877d
2 changed files with 2 additions and 5 deletions
|
@ -69,7 +69,7 @@ namespace ircd::json
|
|||
///
|
||||
struct ircd::json::value
|
||||
{
|
||||
static const size_t max_string_size;
|
||||
static constexpr const size_t max_string_size {64_KiB};
|
||||
|
||||
union
|
||||
{
|
||||
|
|
|
@ -3326,10 +3326,7 @@ ircd::json::escape(const mutable_buffer &buf,
|
|||
//
|
||||
|
||||
decltype(ircd::json::value::max_string_size)
|
||||
ircd::json::value::max_string_size
|
||||
{
|
||||
64_KiB
|
||||
};
|
||||
ircd::json::value::max_string_size;
|
||||
|
||||
std::ostream &
|
||||
ircd::json::operator<<(std::ostream &s, const value &v)
|
||||
|
|
Loading…
Reference in a new issue