| 245 | #endif |
| 246 | |
| 247 | string makeTempFilename() { |
| 248 | thread_local size_t fileCount = 0u; |
| 249 | |
| 250 | ++fileCount; |
| 251 | const size_t threadID = hash<thread::id>{}(std::this_thread::get_id()); |
| 252 | |
| 253 | return to_string( |
| 254 | hash<string>{}(to_string(threadID) + "_" + to_string(fileCount))); |
| 255 | } |
| 256 | |
| 257 | template<typename T> |
| 258 | string toString(T value) { |
no test coverage detected