12 #ifndef _H_SST_CORE_STRINGIZE
13 #define _H_SST_CORE_STRINGIZE
15 #include <sst_config.h>
22 inline std::string to_string(
double val) {
24 sprintf(buffer,
"%f", val);
26 std::string buffer_str(buffer);
30 inline std::string to_string(
float val) {
32 sprintf(buffer,
"%f", val);
34 std::string buffer_str(buffer);
38 inline std::string to_string(int32_t val) {
40 sprintf(buffer,
"%" PRId32, val);
42 std::string buffer_str(buffer);
46 inline std::string to_string(int64_t val) {
48 sprintf(buffer,
"%" PRId64, val);
50 std::string buffer_str(buffer);
54 inline std::string to_string(uint32_t val) {
56 sprintf(buffer,
"%" PRIu32, val);
58 std::string buffer_str(buffer);
62 inline std::string to_string(uint64_t val) {
64 sprintf(buffer,
"%" PRIu64, val);
66 std::string buffer_str(buffer);