]> git.sesse.net Git - casparcg/blobdiff - common/os/linux/system_info.cpp
Remove most of boost::lexical_cast.
[casparcg] / common / os / linux / system_info.cpp
index 4b05d86e91ef89109d9bbfaef5e80a2daa085121..aa192120586a693214ffe4bb830b7d270c97c881 100644 (file)
@@ -25,7 +25,6 @@
 
 #include <boost/algorithm/string/trim.hpp>
 #include <boost/algorithm/string/split.hpp>
-#include <boost/lexical_cast.hpp>
 #include <boost/range/algorithm/count.hpp>
 #include <boost/iostreams/filter/grep.hpp>
 #include <boost/iostreams/filter/line.hpp>
@@ -126,7 +125,7 @@ struct wc : boost::iostreams::aggregate_filter<wchar_t>
        void do_filter(const std::vector<wchar_t>& src, std::vector<wchar_t>& dest) override
        {
                auto line_count = boost::range::count(src, L'\n') + 4;
-               auto out = boost::lexical_cast<std::wstring>(line_count);
+               auto out = std::to_wstring(line_count);
                dest.insert(dest.begin(), out.begin(), out.end());
                dest.push_back('\n');
        }