0
0
Fork 0
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:
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, 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;

View file

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