# See: https://github.com/fmtlib/fmt/issues/2759

--- a/src/examples/cpp/format-string.cpp 2022-01-09 21:22:36.000000000 +0545
+++ b/src/examples/cpp/format-string.cpp 2022-08-05 03:35:09.000000000 +0545
@@ -15,6 +15,10 @@
  * limitations under the License.
  */
 
+#ifndef FMT_DEPRECATED_OSTREAM
+#define FMT_DEPRECATED_OSTREAM
+#endif
+
 #include <stdlib.h>
 #include <log4cxx/basicconfigurator.h>
 #include <locale.h>
