From 9c62a2770c9716235c800fded5f1d90655b3b574 Mon Sep 17 00:00:00 2001 From: Andre Sailer <andre.philippe.sailer@cern.ch> Date: Thu, 24 Feb 2022 16:07:06 +0100 Subject: [PATCH] DDParsers: do not use deprecated boost headers with boost 1.78 --- DDParsers/include/Parsers/spirit/GrammarsV2.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/DDParsers/include/Parsers/spirit/GrammarsV2.h b/DDParsers/include/Parsers/spirit/GrammarsV2.h index d32a19dab..a229fa21d 100644 --- a/DDParsers/include/Parsers/spirit/GrammarsV2.h +++ b/DDParsers/include/Parsers/spirit/GrammarsV2.h @@ -33,9 +33,19 @@ #include <boost/fusion/include/unused.hpp> #include <boost/fusion/include/std_pair.hpp> +// version is like X YYY ZZ (no spaces) +#if BOOST_VERSION >= 107800 + +#include <boost/phoenix/core.hpp> +#include <boost/phoenix/operator.hpp> + +#else + #include <boost/spirit/include/phoenix_core.hpp> #include <boost/spirit/include/phoenix_operator.hpp> +#endif + #include <boost/utility/enable_if.hpp> #include <boost/type_traits.hpp> -- GitLab