0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-10-05 23:28:53 +02:00

fixup! ircd::util: Add string() convenience to 'to_string' an object stream.

This commit is contained in:
Jason Volk 2016-10-10 22:02:57 -07:00
parent f0104b0114
commit 02146880f8

View file

@ -249,8 +249,8 @@ template<class T>
auto auto
string(const T &s) string(const T &s)
{ {
using std::stringstream; std::stringstream ss;
return static_cast<stringstream &>(stringstream{} << s).str(); return (ss << s).str();
} }
inline auto inline auto