You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a pointer of std::iostream, the object it points to might be std::stringstream, std::fstream, or anything inherit the base type. What is the most efficient and elegant way to extract its content and print it via spdlog?
I have a pointer of
std::iostream
, the object it points to might bestd::stringstream
,std::fstream
, or anything inherit the base type. What is the most efficient and elegant way to extract its content and print it via spdlog?I can do the following.
Is there any better way? I don't think my current approach either efficient or elegant...
The text was updated successfully, but these errors were encountered: