mirror of
https://github.com/QuasarApp/pe-parse.git
synced 2025-04-28 05:14:33 +00:00
- CMake: Refactor, added more warnings. - Refactor - Added Windows support - Added a missing include file for linux. - Do not set CMAKE_CXX_STANDARD on Windows - Always initialize the stat struct - CMake: update the required version, request C++11, disable GNU extensions - CMake: Add default switch cases, fix GCC warnings. - Prefer assignment from an empty object when initializing
13 lines
236 B
C++
13 lines
236 B
C++
#pragma once
|
|
|
|
#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();
|
|
}
|
|
} // namespace peparse
|