From acce64a8a775b66b1efd0d8066cd3cbbb85b45d0 Mon Sep 17 00:00:00 2001
From: Marco Clemencic <marco.clemencic@cern.ch>
Date: Fri, 9 Jun 2023 12:04:58 +0200
Subject: [PATCH] Fix compilation with fmtlib 10

---
 Det/VPDet/src/component/legacy/VeloMotionSystemFromYaml.cpp | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/Det/VPDet/src/component/legacy/VeloMotionSystemFromYaml.cpp b/Det/VPDet/src/component/legacy/VeloMotionSystemFromYaml.cpp
index 4a13e91a..d0746e31 100644
--- a/Det/VPDet/src/component/legacy/VeloMotionSystemFromYaml.cpp
+++ b/Det/VPDet/src/component/legacy/VeloMotionSystemFromYaml.cpp
@@ -1,5 +1,5 @@
 /*****************************************************************************\
-* (c) Copyright 2022 CERN for the benefit of the LHCb Collaboration           *
+* (c) Copyright 2022-2023 CERN for the benefit of the LHCb Collaboration      *
 *                                                                             *
 * This software is distributed under the terms of the GNU General Public      *
 * Licence version 3 (GPL Version 3), copied verbatim in the file "COPYING".   *
@@ -20,11 +20,15 @@
 #include <XmlTools/IXmlSvc.h>
 #include <atomic>
 #include <fmt/format.h>
+#include <fmt/ostream.h>
 #include <mutex>
 #include <string>
 #include <tuple>
 #include <yaml-cpp/yaml.h>
 
+// Allow formatting of YAML::Node through `operator<<` (https://fmt.dev/latest/api.html#std-ostream-support)
+template <> struct fmt::formatter<YAML::Node> : ostream_formatter {};
+
 namespace LHCb {
   namespace DetDesc {
     /// Algorithm to extract the Velo Motion System data from YAML conditions and
-- 
GitLab