]> git.sesse.net Git - casparcg/blobdiff - core/diagnostics/call_context.cpp
Remove most of boost::lexical_cast.
[casparcg] / core / diagnostics / call_context.cpp
index a04a7c67ff17978f32c7ffc1a8f66f31809737c2..204f96c06d3c428f1d9b15d4360d7cd7b1f095fe 100644 (file)
@@ -23,8 +23,6 @@
 
 #include "call_context.h"
 
-#include <boost/lexical_cast.hpp>
-
 namespace caspar { namespace core { namespace diagnostics {
 
 call_context& call_context::for_thread()
@@ -44,9 +42,9 @@ std::wstring call_context::to_string() const
        if (video_channel == -1)
                return L"[]";
        else if (layer == -1)
-               return L"[ch=" + boost::lexical_cast<std::wstring>(video_channel) + L"]";
+               return L"[ch=" + std::to_wstring(video_channel) + L"]";
        else
-               return L"[ch=" + boost::lexical_cast<std::wstring>(video_channel) + L"; layer=" + boost::lexical_cast<std::wstring>(layer) + L"]";
+               return L"[ch=" + std::to_wstring(video_channel) + L"; layer=" + std::to_wstring(layer) + L"]";
 }
 
 }}}