summaryrefslogtreecommitdiff
path: root/boost
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2011-02-05 09:44:28 +0100
committerDavid Tardon <dtardon@redhat.com>2011-02-05 09:47:21 +0100
commit400f1e7334c77cdd8676a9afcd269ecf2eb42815 (patch)
tree15c5046121acc12b3bb6540d4c4393a568249eed /boost
parentda780c6eb3b2f8337d83418e96ada15f0815496d (diff)
define copy ctor for boost::unordered_map/_set
Build with gcc 4.6 breaks otherwise.
Diffstat (limited to 'boost')
-rw-r--r--boost/makefile.mk2
-rw-r--r--boost/unordered_map-doesnt-support-cp-ctor.patch92
2 files changed, 94 insertions, 0 deletions
diff --git a/boost/makefile.mk b/boost/makefile.mk
index b9912d2ac3a2..fb7c1c222dd5 100644
--- a/boost/makefile.mk
+++ b/boost/makefile.mk
@@ -53,6 +53,8 @@ TARFILE_MD5=f02578f5218f217a9f20e9c30e119c6a
PATCH_FILES=$(TARFILE_NAME).patch
#https://svn.boost.org/trac/boost/ticket/4713
PATCH_FILES+=boost.4713.warnings.patch
+#https://svn.boost.org/trac/boost/ticket/5119
+PATCH_FILES+=unordered_map-doesnt-support-cp-ctor.patch
ADDITIONAL_FILES= \
libs/thread/src/win32/makefile.mk
diff --git a/boost/unordered_map-doesnt-support-cp-ctor.patch b/boost/unordered_map-doesnt-support-cp-ctor.patch
new file mode 100644
index 000000000000..740c953d069e
--- /dev/null
+++ b/boost/unordered_map-doesnt-support-cp-ctor.patch
@@ -0,0 +1,92 @@
+Index: /trunk/boost/unordered/unordered_set.hpp
+===================================================================
+--- misc/boost_1_44_0/boost/unordered/unordered_set.hpp (revision 60754)
++++ misc/build/boost_1_44_0/boost/unordered/unordered_set.hpp (revision 68445)
+@@ -155,4 +155,9 @@
+
+ #if !defined(BOOST_NO_RVALUE_REFERENCES)
++ unordered_set(unordered_set const& other)
++ : table_(other.table_)
++ {
++ }
++
+ unordered_set(unordered_set&& other)
+ : table_(other.table_, boost::unordered_detail::move_tag())
+@@ -163,4 +168,10 @@
+ : table_(other.table_, a, boost::unordered_detail::move_tag())
+ {
++ }
++
++ unordered_set& operator=(unordered_set const& x)
++ {
++ table_ = x.table_;
++ return *this;
+ }
+
+@@ -652,4 +663,9 @@
+
+ #if !defined(BOOST_NO_RVALUE_REFERENCES)
++ unordered_multiset(unordered_multiset const& other)
++ : table_(other.table_)
++ {
++ }
++
+ unordered_multiset(unordered_multiset&& other)
+ : table_(other.table_, boost::unordered_detail::move_tag())
+@@ -660,4 +676,10 @@
+ : table_(other.table_, a, boost::unordered_detail::move_tag())
+ {
++ }
++
++ unordered_multiset& operator=(unordered_multiset const& x)
++ {
++ table_ = x.table_;
++ return *this;
+ }
+
+Index: /trunk/boost/unordered/unordered_map.hpp
+===================================================================
+--- misc/boost_1_44_0/boost/unordered/unordered_map.hpp (revision 60754)
++++ misc/build/boost_1_44_0/boost/unordered/unordered_map.hpp (revision 68445)
+@@ -161,4 +161,9 @@
+
+ #if !defined(BOOST_NO_RVALUE_REFERENCES)
++ unordered_map(unordered_map const& other)
++ : table_(other.table_)
++ {
++ }
++
+ unordered_map(unordered_map&& other)
+ : table_(other.table_, boost::unordered_detail::move_tag())
+@@ -169,4 +174,10 @@
+ : table_(other.table_, a, boost::unordered_detail::move_tag())
+ {
++ }
++
++ unordered_map& operator=(unordered_map const& x)
++ {
++ table_ = x.table_;
++ return *this;
+ }
+
+@@ -706,4 +717,9 @@
+
+ #if !defined(BOOST_NO_RVALUE_REFERENCES)
++ unordered_multimap(unordered_multimap const& other)
++ : table_(other.table_)
++ {
++ }
++
+ unordered_multimap(unordered_multimap&& other)
+ : table_(other.table_, boost::unordered_detail::move_tag())
+@@ -714,4 +730,10 @@
+ : table_(other.table_, a, boost::unordered_detail::move_tag())
+ {
++ }
++
++ unordered_multimap& operator=(unordered_multimap const& x)
++ {
++ table_ = x.table_;
++ return *this;
+ }
+