utility: trim and lexical_cast were missing inline static leading to compilation errors.

This commit is contained in:
Luca Schlecker 2022-06-06 18:57:18 +02:00 committed by Farook Al-Sammarraie
parent 649e9c46ff
commit 6c4ad07a62

View File

@ -805,7 +805,7 @@ namespace crow
}
template<typename T, typename U>
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<typename T>
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 "";