From 400f1e7334c77cdd8676a9afcd269ecf2eb42815 Mon Sep 17 00:00:00 2001 From: David Tardon Date: Sat, 5 Feb 2011 09:44:28 +0100 Subject: define copy ctor for boost::unordered_map/_set Build with gcc 4.6 breaks otherwise. --- boost/makefile.mk | 2 + boost/unordered_map-doesnt-support-cp-ctor.patch | 92 ++++++++++++++++++++++++ 2 files changed, 94 insertions(+) create mode 100644 boost/unordered_map-doesnt-support-cp-ctor.patch (limited to 'boost') 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; + } + -- cgit