WindowsXP/ds/security/passport/common/tools/passporttostring.hpp
2025-04-27 07:49:33 -04:00

16 lines
315 B
C++

#ifndef PASSPORTTOSTRING_HPP
#define PASSPORTTOSTRING_HPP
#include <strstrea.h>
template <class T>
std::string PassportToString(const T & t)
{
strstream out;
out << t << ends;
std::string retValue = out.str();
out.rdbuf()->freeze(0);
return retValue;
}
#endif // !PASSPORTTOSTRING_HPP