summaryrefslogtreecommitdiff
path: root/dev-libs/boost/files/boost-1.87.0-move.patch
blob: 68d2abbcb6905faef3b28e140b1176481a5dc2fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
https://bugs.gentoo.org/948204
https://github.com/boostorg/container/issues/292
https://github.com/boostorg/move/issues/59
https://github.com/boostorg/move/commit/5f073f8f00ee23b4502c0ad30a3aa2a5154cd1e8
https://github.com/boostorg/move/commit/e9ff3ca0952e680871145f454925614d950cef4d

From 5f073f8f00ee23b4502c0ad30a3aa2a5154cd1e8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= <igaztanaga@gmail.com>
Date: Fri, 28 Feb 2025 17:22:47 +0100
Subject: [PATCH] FIxes #59 ("std_ns_begin.hpp: missing definition of
 BOOST_MOVE_STD_NS_BEG")

---
 include/boost/move/detail/std_ns_begin.hpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/include/boost/move/detail/std_ns_begin.hpp b/include/boost/move/detail/std_ns_begin.hpp
index de13cde..90169c4 100644
--- a/boost/move/detail/std_ns_begin.hpp
+++ b/boost/move/detail/std_ns_begin.hpp
@@ -9,6 +9,7 @@
 #//
 #//////////////////////////////////////////////////////////////////////////////
 #
+#include <boost/config.hpp>
 #if defined(_LIBCPP_VERSION)
    #if defined(__clang__)
       #define BOOST_MOVE_STD_NS_GCC_DIAGNOSTIC_PUSH
@@ -26,6 +27,9 @@
 #elif defined(BOOST_DINKUMWARE_STDLIB)
    #define BOOST_MOVE_STD_NS_BEG _STD_BEGIN
    #define BOOST_MOVE_STD_NS_END _STD_END
+#else
+   #define BOOST_MOVE_STD_NS_BEG namespace std{
+   #define BOOST_MOVE_STD_NS_END
 #endif
 
 #if defined(_MSC_VER) && (_MSC_VER >= 1915)

From e9ff3ca0952e680871145f454925614d950cef4d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= <igaztanaga@gmail.com>
Date: Fri, 28 Feb 2025 19:32:21 +0100
Subject: [PATCH] Fix #59 again (missing BOOST_MOVE_STD_NS_END closing brace)

---
 include/boost/move/detail/std_ns_begin.hpp | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/include/boost/move/detail/std_ns_begin.hpp b/include/boost/move/detail/std_ns_begin.hpp
index 90169c4..ef9b4b4 100644
--- a/boost/move/detail/std_ns_begin.hpp
+++ b/boost/move/detail/std_ns_begin.hpp
@@ -9,7 +9,9 @@
 #//
 #//////////////////////////////////////////////////////////////////////////////
 #
-#include <boost/config.hpp>
+#ifndef BOOST_CONFIG_HPP
+#  include <boost/config.hpp>
+#endif
 #if defined(_LIBCPP_VERSION)
    #if defined(__clang__)
       #define BOOST_MOVE_STD_NS_GCC_DIAGNOSTIC_PUSH
@@ -28,8 +30,8 @@
    #define BOOST_MOVE_STD_NS_BEG _STD_BEGIN
    #define BOOST_MOVE_STD_NS_END _STD_END
 #else
-   #define BOOST_MOVE_STD_NS_BEG namespace std{
-   #define BOOST_MOVE_STD_NS_END
+   #define BOOST_MOVE_STD_NS_BEG namespace std {
+   #define BOOST_MOVE_STD_NS_END }
 #endif
 
 #if defined(_MSC_VER) && (_MSC_VER >= 1915)