]> git.sesse.net Git - casparcg/blobdiff - core/frame/audio_channel_layout.cpp
Remove most of boost::lexical_cast.
[casparcg] / core / frame / audio_channel_layout.cpp
index 996101702ab433a47de86b15b08a10ef34c97c39..d039567150dfa9cc234988d0c3bff7f2226d6f3c 100644 (file)
@@ -28,7 +28,6 @@
 #include <boost/algorithm/string/split.hpp>
 #include <boost/algorithm/string/join.hpp>
 #include <boost/range/algorithm/equal.hpp>
-#include <boost/lexical_cast.hpp>
 #include <boost/property_tree/ptree.hpp>
 
 #include <map>
@@ -66,7 +65,7 @@ audio_channel_layout::audio_channel_layout(int num_channels, std::wstring type_,
 
        if (channel_order.size() > num_channels)
                CASPAR_THROW_EXCEPTION(invalid_argument() << msg_info(
-                       channel_order_ + L" contains more than " + boost::lexical_cast<std::wstring>(num_channels)));
+                       channel_order_ + L" contains more than " + std::to_wstring(num_channels)));
 }
 
 std::vector<int> audio_channel_layout::indexes_of(const std::wstring& channel_name) const
@@ -83,7 +82,7 @@ std::wstring audio_channel_layout::print() const
 {
        auto channels = boost::join(channel_order, L" ");
 
-       return L"[audio_channel_layout] num_channels=" + boost::lexical_cast<std::wstring>(num_channels) + L" type=" + type + L" channel_order=" + channels;
+       return L"[audio_channel_layout] num_channels=" + std::to_wstring(num_channels) + L" type=" + type + L" channel_order=" + channels;
 }
 
 const audio_channel_layout& audio_channel_layout::invalid()