From b532975fa68c08a939915e0445cf21928bae8e1b Mon Sep 17 00:00:00 2001 From: Samuel Williams Date: Tue, 6 Nov 2012 19:55:53 +1300 Subject: [PATCH] Fixed a bug with the non-portable usage of std::stringstream. --- source/Events/Logger.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/Events/Logger.cpp b/source/Events/Logger.cpp index 6c0efb8..08bee56 100644 --- a/source/Events/Logger.cpp +++ b/source/Events/Logger.cpp @@ -156,7 +156,10 @@ namespace Dream if (i != _thread_names.end()) { return i->second; } else { - return (std::stringstream() << std::this_thread::get_id()).str(); + std::stringstream buffer; + buffer << std::this_thread::get_id(); + + return buffer.str(); } }