Skip to content

Commit

Permalink
utility: trim and lexical_cast were missing inline static leading t…
Browse files Browse the repository at this point in the history
…o compilation errors.
  • Loading branch information
luca-schlecker committed Jun 6, 2022
1 parent eaced90 commit 2e9ee2a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/crow/utility.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand All @@ -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 "";
Expand Down

0 comments on commit 2e9ee2a

Please sign in to comment.