Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
hsutter committed Jan 6, 2023
2 parents 313444f + 0d7504c commit b7fdc3c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/cpp2util.h
Original file line number Diff line number Diff line change
Expand Up @@ -1144,6 +1144,11 @@ inline auto to_string(T const& t) -> std::string
return std::to_string(t);
}

inline auto to_string(char const& t) -> std::string
{
return std::string{t};
}

inline auto to_string(char const* s) -> std::string
{
return std::string{s};
Expand Down

0 comments on commit b7fdc3c

Please sign in to comment.