mirror of
https://github.com/QuasarApp/pe-parse.git
synced 2025-04-29 13:54:33 +00:00
13 lines
233 B
C
13 lines
233 B
C
|
#ifndef _TO_STRING_H
|
||
|
#define _TO_STRING_H
|
||
|
#include <sstream>
|
||
|
|
||
|
template <class T>
|
||
|
static
|
||
|
std::string to_string(T t, std::ios_base & (*f)(std::ios_base&)) {
|
||
|
std::ostringstream oss;
|
||
|
oss << f << t;
|
||
|
return oss.str();
|
||
|
}
|
||
|
#endif
|