mirror of
https://github.com/matrix-construct/construct
synced 2024-12-28 00:14:07 +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
|
||||
string(const T &s)
|
||||
{
|
||||
using std::stringstream;
|
||||
return static_cast<stringstream &>(stringstream{} << s).str();
|
||||
std::stringstream ss;
|
||||
return (ss << s).str();
|
||||
}
|
||||
|
||||
inline auto
|
||||
|
|
Loading…
Reference in a new issue