From e3cf721a23854ab4c227e30fded3b69949e3f6a8 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sun, 21 Jul 2024 22:20:27 +0300 Subject: [PATCH] Define BOOST_ALLOW_DEPRECATED in JSON tests for g++ 4.x --- test/variant_json_value_from.cpp | 6 ++++++ test/variant_json_value_to.cpp | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/test/variant_json_value_from.cpp b/test/variant_json_value_from.cpp index 9734c74..be5dc3a 100644 --- a/test/variant_json_value_from.cpp +++ b/test/variant_json_value_from.cpp @@ -2,6 +2,12 @@ // Distributed under the Boost Software License, Version 1.0. // https://www.boost.org/LICENSE_1_0.txt +#include + +#if defined(BOOST_GCC) && BOOST_GCC < 50000 +# define BOOST_ALLOW_DEPRECATED +#endif + #include #include #include diff --git a/test/variant_json_value_to.cpp b/test/variant_json_value_to.cpp index 1263931..5b42cc0 100644 --- a/test/variant_json_value_to.cpp +++ b/test/variant_json_value_to.cpp @@ -2,6 +2,12 @@ // Distributed under the Boost Software License, Version 1.0. // https://www.boost.org/LICENSE_1_0.txt +#include + +#if defined(BOOST_GCC) && BOOST_GCC < 50000 +# define BOOST_ALLOW_DEPRECATED +#endif + #include #include #include