]> git.sesse.net Git - casparcg/blobdiff - core/diagnostics/osd_graph.cpp
Remove most of boost::lexical_cast.
[casparcg] / core / diagnostics / osd_graph.cpp
index fefc74403b3a2c20e8d469e8080e99a10656dbab..2cc5bd736575dbf7117550fab4b55c9581e675ca 100644 (file)
@@ -38,7 +38,6 @@
 
 #include <boost/optional.hpp>
 #include <boost/circular_buffer.hpp>
-#include <boost/lexical_cast.hpp>
 
 #include <tbb/concurrent_unordered_map.h>
 #include <tbb/atomic.h>
@@ -473,10 +472,10 @@ private:
 
                if (context_.video_channel != -1)
                {
-                       auto ctx_str = boost::lexical_cast<std::string>(context_.video_channel);
+                       auto ctx_str = std::to_string(context_.video_channel);
 
                        if (context_.layer != -1)
-                               ctx_str += "-" + boost::lexical_cast<std::string>(context_.layer);
+                               ctx_str += "-" + std::to_string(context_.layer);
 
                        sf::Text context_text(ctx_str, get_default_font(), text_size);
                        context_text.setStyle(sf::Text::Italic);