0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-07-05 01:58:35 +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
string(const T &s)
{
using std::stringstream;
return static_cast<stringstream &>(stringstream{} << s).str();
std::stringstream ss;
return (ss << s).str();
}
inline auto