| 1068 | */ |
| 1069 | template<typename... Args> |
| 1070 | inline std::string __strprintf(const char* fmt, const char* file, int line, const Args&... args) { |
| 1071 | std::ostringstream oss; |
| 1072 | try { |
| 1073 | tinyformat::format(oss, fmt, args...); |
| 1074 | } catch (tinyformat::format_error& fmterr) { |
| 1075 | throw tinyformat::format_error("[" + std::string(file) + ":" + std::to_string(line) + "] " + |
| 1076 | fmterr.what()); |
| 1077 | } |
| 1078 | return oss.str(); |
| 1079 | } |
| 1080 | |
| 1081 | template<typename... Args> |
| 1082 | inline std::string __strprintf(const std::string &fmt, const char* file, int line, const Args&... args) { |
nothing calls this directly
no test coverage detected