Skip to content

Commit

Permalink
Refer to std string and stream with their fully qualified names.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashkan Aliabadi committed Dec 3, 2020
1 parent 8cd86b6 commit 8f4e09a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vk_mem_alloc.h
Original file line number Diff line number Diff line change
Expand Up @@ -15602,9 +15602,9 @@ void VmaRecorder::GetBasicParams(CallParams& outParams)
// There is room for optimization since sstream is quite slow.
// Is there a better way to convert std::this_thread::get_id() to uint32_t?
std::thread::id thread_id = std::this_thread::get_id();
stringstream thread_id_to_string_converter;
std::stringstream thread_id_to_string_converter;
thread_id_to_string_converter << thread_id;
string thread_id_as_string = thread_id_to_string_converter.str();
std::string thread_id_as_string = thread_id_to_string_converter.str();
outParams.threadId = static_cast<uint32_t>(std::stoi(thread_id_as_string.c_str()));
#endif

Expand Down

0 comments on commit 8f4e09a

Please sign in to comment.