mirror of
https://github.com/QuasarApp/pe-parse.git
synced 2025-04-26 20:34:31 +00:00
* Put all of peparse in the peparse namespace. * Fixes dupicate symbol problems when using the library inside other applications, namely Python * Closes #25
15 lines
255 B
C++
15 lines
255 B
C++
#ifndef _TO_STRING_H
|
|
#define _TO_STRING_H
|
|
#include <sstream>
|
|
|
|
namespace peparse {
|
|
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
|