mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 10:12:39 +01:00
ircd::json: Max iov::max_size a constexpr.
This commit is contained in:
parent
f21c08fb19
commit
a36f375162
2 changed files with 5 additions and 5 deletions
|
@ -51,7 +51,10 @@ struct ircd::json::iov
|
||||||
IRCD_EXCEPTION(error, exists);
|
IRCD_EXCEPTION(error, exists);
|
||||||
IRCD_EXCEPTION(error, oversize);
|
IRCD_EXCEPTION(error, oversize);
|
||||||
|
|
||||||
static const size_t max_size;
|
static constexpr const size_t max_size
|
||||||
|
{
|
||||||
|
1024
|
||||||
|
};
|
||||||
|
|
||||||
public:
|
public:
|
||||||
bool has(const string_view &key) const;
|
bool has(const string_view &key) const;
|
||||||
|
|
|
@ -1283,10 +1283,7 @@ ircd::json::_prev(chase &c)
|
||||||
//
|
//
|
||||||
|
|
||||||
decltype(ircd::json::iov::max_size)
|
decltype(ircd::json::iov::max_size)
|
||||||
ircd::json::iov::max_size
|
ircd::json::iov::max_size;
|
||||||
{
|
|
||||||
1024
|
|
||||||
};
|
|
||||||
|
|
||||||
std::ostream &
|
std::ostream &
|
||||||
ircd::json::operator<<(std::ostream &s, const iov &iov)
|
ircd::json::operator<<(std::ostream &s, const iov &iov)
|
||||||
|
|
Loading…
Reference in a new issue