]> git.sesse.net Git - casparcg/blobdiff - core/producer/scene/expression_parser.cpp
Remove most of boost::lexical_cast.
[casparcg] / core / producer / scene / expression_parser.cpp
index a0153af1bc7f901be612751d4fff45db052d0cbe..7719b8f7216c8402a5b94f55b70293390e333a32 100644 (file)
@@ -68,7 +68,7 @@ std::wstring at_position(
 {
        int index = static_cast<int>(cursor - str.begin());
 
-       return L" at index " + boost::lexical_cast<std::wstring>(index)
+       return L" at index " + std::to_wstring(index)
                        + L" in " + str;
 }
 
@@ -285,7 +285,7 @@ double parse_constant(
                ++cursor;
        }
 
-       return boost::lexical_cast<double>(constant);
+       return std::stod(constant);
 }
 
 std::wstring parse_string_literal(