From 6c4ad07a62b387ee7e60a98f797a60226328cee4 Mon Sep 17 00:00:00 2001 From: Luca Schlecker Date: Mon, 6 Jun 2022 18:57:18 +0200 Subject: [PATCH] utility: trim and lexical_cast were missing `inline static` leading to compilation errors. --- include/crow/utility.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/crow/utility.h b/include/crow/utility.h index 448ba121a..9a4a69bf0 100644 --- a/include/crow/utility.h +++ b/include/crow/utility.h @@ -805,7 +805,7 @@ namespace crow } template - T lexical_cast(const U& v) + inline static T lexical_cast(const U& v) { std::stringstream stream; T res; @@ -817,7 +817,7 @@ namespace crow } template - T lexical_cast(const char* v, size_t count) + inline static T lexical_cast(const char* v, size_t count) { std::stringstream stream; T res; @@ -828,7 +828,7 @@ namespace crow return res; } - std::string trim(const std::string& v) + inline static std::string trim(const std::string& v) { if (v.empty()) return "";