Skip to content

Commit 9da7677

Browse files
committed
Add cpp2::to_string(char const&) overload
1 parent 98ae2b9 commit 9da7677

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

include/cpp2util.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1078,6 +1078,11 @@ inline auto to_string(T const& t) -> std::string
10781078
return std::to_string(t);
10791079
}
10801080

1081+
inline auto to_string(char const& t) -> std::string
1082+
{
1083+
return std::string{t};
1084+
}
1085+
10811086
inline auto to_string(char const* s) -> std::string
10821087
{
10831088
return std::string{s};

0 commit comments

Comments
 (0)