|
78 | 78 | #endif |
79 | 79 |
|
80 | 80 | #include "boost/algorithm/string/predicate.hpp" |
81 | | -#include "boost/format.hpp" |
82 | 81 |
|
83 | 82 | #include "tbb/concurrent_queue.h" |
84 | 83 |
|
| 84 | +#include "fmt/format.h" |
| 85 | + |
85 | 86 | #include <functional> |
86 | 87 | #include <unordered_map> |
87 | 88 | #include <vector> |
@@ -185,7 +186,7 @@ T *reportedCast( const IECore::RunTimeTyped *v, const char *type, const IECore:: |
185 | 186 | return t; |
186 | 187 | } |
187 | 188 |
|
188 | | - IECore::msg( IECore::Msg::Warning, "IECoreGL::Renderer", boost::format( "Expected %s but got %s for %s \"%s\"." ) % T::staticTypeName() % v->typeName() % type % name.c_str() ); |
| 189 | + IECore::msg( IECore::Msg::Warning, "IECoreGL::Renderer", fmt::format( "Expected {} but got {} for {} \"{}\".", T::staticTypeName(), v->typeName(), type, name.string() ) ); |
189 | 190 | return nullptr; |
190 | 191 | } |
191 | 192 |
|
@@ -893,7 +894,7 @@ class OpenGLRenderer final : public IECoreScenePreview::Renderer |
893 | 894 | } |
894 | 895 | else |
895 | 896 | { |
896 | | - IECore::msg( IECore::Msg::Warning, "IECoreGL::Renderer::option", boost::format( "Unknown option \"%s\"." ) % name.c_str() ); |
| 897 | + IECore::msg( IECore::Msg::Warning, "IECoreGL::Renderer::option", fmt::format( "Unknown option \"{}\".", name.string() ) ); |
897 | 898 | } |
898 | 899 | } |
899 | 900 |
|
@@ -1015,7 +1016,7 @@ class OpenGLRenderer final : public IECoreScenePreview::Renderer |
1015 | 1016 | } |
1016 | 1017 | else if( boost::starts_with( name.string(), "gl:" ) || name.string().find( ":" ) == string::npos ) |
1017 | 1018 | { |
1018 | | - IECore::msg( IECore::Msg::Warning, "IECoreGL::Renderer::command", boost::format( "Unknown command \"%s\"." ) % name.c_str() ); |
| 1019 | + IECore::msg( IECore::Msg::Warning, "IECoreGL::Renderer::command", fmt::format( "Unknown command \"{}\".", name.string() ) ); |
1019 | 1020 | } |
1020 | 1021 |
|
1021 | 1022 | return nullptr; |
@@ -1227,15 +1228,15 @@ class OpenGLRenderer final : public IECoreScenePreview::Renderer |
1227 | 1228 | } |
1228 | 1229 | else |
1229 | 1230 | { |
1230 | | - IECore::msg( IECore::Msg::Warning, "IECoreGL::Renderer", boost::format( "Unsupported data format \"%s\"." ) % data ); |
| 1231 | + IECore::msg( IECore::Msg::Warning, "IECoreGL::Renderer", fmt::format( "Unsupported data format \"{}\".", data ) ); |
1231 | 1232 | return; |
1232 | 1233 | } |
1233 | 1234 |
|
1234 | 1235 | const string &type = namedOutput.second->getType(); |
1235 | 1236 | IECore::WriterPtr writer = IECore::Writer::create( image, "tmp." + type ); |
1236 | 1237 | if( !writer ) |
1237 | 1238 | { |
1238 | | - IECore::msg( IECore::Msg::Warning, "IECoreGL::Renderer", boost::format( "Unsupported display type \"%s\"." ) % type ); |
| 1239 | + IECore::msg( IECore::Msg::Warning, "IECoreGL::Renderer", fmt::format( "Unsupported display type \"{}\".", type ) ); |
1239 | 1240 | return; |
1240 | 1241 | } |
1241 | 1242 |
|
|
0 commit comments