From cf6c8181a3f7cdba651895a8ddb84acb201bc0d0 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Tue, 17 Oct 2017 00:46:09 -0700 Subject: [PATCH] fixup! ircd: Add std::chrono lex_cast; cleanup lex_cast buffer argument related. --- include/ircd/tokens.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/ircd/tokens.h b/include/ircd/tokens.h index 77cfb9326..1d7d622e0 100644 --- a/include/ircd/tokens.h +++ b/include/ircd/tokens.h @@ -38,8 +38,8 @@ namespace ircd size_t tokens(const string_view &str, const char *const &sep, const size_t &limit, const token_view &); // Copies tokens into your buffer and null terminates strtok() style. Returns BYTES of buf consumed. - size_t tokens(const string_view &str, const char &sep, char *const &buf, const size_t &max, const token_view &); - size_t tokens(const string_view &str, const char *const &sep, char *const &buf, const size_t &max, const token_view &); + size_t tokens(const string_view &str, const char &sep, const mutable_buffer &buf, const token_view &); + size_t tokens(const string_view &str, const char *const &sep, const mutable_buffer &buf, const token_view &); // Receive token view into iterator range template it tokens(const string_view &str, const sep &, const it &b, const it &e);