From 7a35647ab8de709145cf98294b8daf42719be576 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Mon, 16 Nov 2020 14:51:30 -0800 Subject: [PATCH] ircd: Add missing inline linkages to lex_cast. --- include/ircd/lex_cast.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/ircd/lex_cast.h b/include/ircd/lex_cast.h index 89791478a..36092786c 100644 --- a/include/ircd/lex_cast.h +++ b/include/ircd/lex_cast.h @@ -110,7 +110,7 @@ namespace ircd /// string in a static ring buffer. There are LEX_CAST_BUFS number of buffers /// so you should not hold on to the returned view for very long. template -ircd::string_view +inline ircd::string_view ircd::lex_cast(const T &t) { return lex_cast(t, null_buffer); @@ -128,7 +128,7 @@ ircd::lex_cast(const string_view &s) /// Template basis for a string_view input template -T +inline T ircd::lex_cast(const string_view &s) { return s; @@ -156,7 +156,7 @@ ircd::lex_cast(const std::string &s) /// Template basis for a const std::string input template -T +inline T ircd::lex_cast(const std::string &s) { return lex_cast(string_view{s}); @@ -166,7 +166,7 @@ ircd::lex_cast(const std::string &s) /// than the const std::string alternative some trivial conversions are /// easier to make in the specializations. template -T +inline T ircd::lex_cast(std::string &s) { return lex_cast(string_view{s}); @@ -223,7 +223,7 @@ ircd::lex_cast(const std::string &s, /// Template basis; if no specialization is matched there is no fallback here template IRCD_LEX_CAST_UNNECESSARY -ircd::string_view +inline ircd::string_view ircd::lex_cast(T t, const mutable_buffer &buf) {