77
88#include < boost/any.hpp>
99#include < boost/optional.hpp>
10- #include < boost/format.hpp>
1110#include < boost/core/demangle.hpp>
1211
1312#include < irods/irods_re_serialization.hpp>
3130#include < boost/python.hpp>
3231#pragma GCC diagnostic pop
3332
33+ #include < fmt/format.h>
34+
3435#include " irods/private/re/python/irods_types.hpp"
3536#include " irods/private/re/python/irods_errors.hpp"
3637#include " irods/private/re/python/types/array_ref.hpp"
@@ -139,7 +140,7 @@ namespace
139140 // clang-format on
140141 }
141142 else {
142- THROW (SYS_NOT_SUPPORTED, boost ::format (" Unknown type in msParam: [%s] " ) % msParam.type );
143+ THROW (SYS_NOT_SUPPORTED, fmt ::format (" Unknown type in msParam: [{0}] " , msParam.type ) );
143144 }
144145 }
145146
@@ -404,8 +405,8 @@ void update_argument(boost::any& cpp_arg, boost::python::object& py_arg)
404405 }
405406 catch (const std::out_of_range&) {
406407 // THROW(SYS_NOT_SUPPORTED,
407- // boost ::format("Attempted to extract from a boost::python::object containing an "
408- // "unsupported type: %s") % boost::core::scoped_demangled_name{cpp_arg.type().name()}.get());
408+ // fmt ::format("Attempted to extract from a boost::python::object containing an "
409+ // "unsupported type: {0}", boost::core::scoped_demangled_name{cpp_arg.type().name()}.get() ));
409410 }
410411 catch (const boost::bad_any_cast&) {
411412 THROW (SYS_NOT_SUPPORTED, " Failed any_cast when updating boost::any from boost:python::object" );
@@ -430,8 +431,8 @@ boost::python::object object_from_any(boost::any& arg)
430431 }
431432 else {
432433 THROW (SYS_NOT_SUPPORTED,
433- boost ::format (" Attempted to create a boost::python::object from a boost::any containing an "
434- " unsupported type: %s " ) % boost::core::scoped_demangled_name{arg.type ().name ()}.get ());
434+ fmt ::format (" Attempted to create a boost::python::object from a boost::any containing an "
435+ " unsupported type: {0} " , boost::core::scoped_demangled_name{arg.type ().name ()}.get () ));
435436 }
436437 }
437438 catch (const boost::bad_any_cast&) {
0 commit comments