mirror of
https://github.com/matrix-construct/construct
synced 2024-12-28 16:34:13 +01:00
fixup! ircd::util: Add string() convenience to 'to_string' an object stream.
This commit is contained in:
parent
f0104b0114
commit
02146880f8
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue