forked from conan-io/conan-center-index
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Boost/1.76.0: Fix #include inside boost namespace patch
- The existing code fails to build if <utility> was not already included. - boostorg/math#670
- Loading branch information
Showing
2 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
recipes/boost/all/patches/1.76.0-0001-fix-include-inside-boost-namespace.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
From 1ec5c98d80de97f9e962c5627e1a0e6096099894 Mon Sep 17 00:00:00 2001 | ||
From: Daniel Scharrer <daniel@constexpr.org> | ||
Date: Wed, 28 Jul 2021 19:56:31 +0200 | ||
Subject: [PATCH] Fix #include inside boost namespace | ||
|
||
The existing code fails to build if <utility> was not already included. | ||
--- | ||
boost/math/tools/mp.hpp | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/boost/math/tools/mp.hpp b/boost/math/tools/mp.hpp | ||
index 35565646f..dc8440988 100644 | ||
--- a/boost/math/tools/mp.hpp | ||
+++ b/boost/math/tools/mp.hpp | ||
@@ -13,6 +13,7 @@ | ||
|
||
#include <type_traits> | ||
#include <cstddef> | ||
+#include <utility> | ||
|
||
namespace boost { namespace math { namespace tools { namespace meta_programming { | ||
|
||
@@ -338,7 +339,6 @@ using mp_remove_if_q = mp_remove_if<L, Q::template fn>; | ||
// Index sequence | ||
// Use C++14 index sequence if available | ||
#if defined(__cpp_lib_integer_sequence) && (__cpp_lib_integer_sequence >= 201304) | ||
-#include <utility> | ||
template<std::size_t... I> | ||
using index_sequence = std::index_sequence<I...>; | ||
|
||
-- | ||
2.39.1 | ||
|