diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-12-30 15:43:14 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-01-05 12:58:13 +0100 |
| commit | b03f2277a205ff7e7cdaa12c6e52322ea474a7af (patch) | |
| tree | d6067668105b2f0c6d0651bd1b8bd4186e0b8893 /src/lib/encode_server.cc | |
| parent | e46ff5f1cf168fb73ea930f3e8469165e5f6644e (diff) | |
Bump libdcp for raw_convert changes.
raw_convert<string> is gone, so here we use fmt::{to_string,format} instead.
Other raw_converts now use fast_float.
Diffstat (limited to 'src/lib/encode_server.cc')
| -rw-r--r-- | src/lib/encode_server.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/lib/encode_server.cc b/src/lib/encode_server.cc index 8d1759986..08e661eac 100644 --- a/src/lib/encode_server.cc +++ b/src/lib/encode_server.cc @@ -40,12 +40,12 @@ #include "util.h" #include "variant.h" #include "version.h" -#include <dcp/raw_convert.h> #include <dcp/warnings.h> #include <libcxml/cxml.h> LIBDCP_DISABLE_WARNINGS #include <libxml++/libxml++.h> LIBDCP_ENABLE_WARNINGS +#include <fmt/format.h> #include <boost/algorithm/string.hpp> #include <boost/scoped_array.hpp> #ifdef HAVE_VALGRIND_H @@ -72,7 +72,6 @@ using boost::scoped_array; using boost::optional; using dcp::ArrayData; using dcp::Size; -using dcp::raw_convert; EncodeServer::EncodeServer (bool verbose, int num_threads) @@ -300,8 +299,8 @@ EncodeServer::broadcast_received () /* Reply to the client saying what we can do */ xmlpp::Document doc; auto root = doc.create_root_node ("ServerAvailable"); - cxml::add_text_child(root, "Threads", raw_convert<string>(_worker_threads.size())); - cxml::add_text_child(root, "Version", raw_convert<string>(SERVER_LINK_VERSION)); + cxml::add_text_child(root, "Threads", fmt::to_string(_worker_threads.size())); + cxml::add_text_child(root, "Version", fmt::to_string(SERVER_LINK_VERSION)); auto xml = doc.write_to_string ("UTF-8"); if (_verbose) { |
