0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-19 08:21:09 +01:00

ircd::json: Max iov::max_size a constexpr.

This commit is contained in:
Jason Volk 2019-02-06 20:51:50 -08:00
parent f21c08fb19
commit a36f375162
2 changed files with 5 additions and 5 deletions

View file

@ -51,7 +51,10 @@ struct ircd::json::iov
IRCD_EXCEPTION(error, exists);
IRCD_EXCEPTION(error, oversize);
static const size_t max_size;
static constexpr const size_t max_size
{
1024
};
public:
bool has(const string_view &key) const;

View file

@ -1283,10 +1283,7 @@ ircd::json::_prev(chase &c)
//
decltype(ircd::json::iov::max_size)
ircd::json::iov::max_size
{
1024
};
ircd::json::iov::max_size;
std::ostream &
ircd::json::operator<<(std::ostream &s, const iov &iov)