[pkg-boost-commits] r14696 - in boost/branches/1.46.1/debian: . patches
Steven Michael Robbins
smr at alioth.debian.org
Wed Jan 4 04:05:27 UTC 2012
Author: smr
Date: 2012-01-04 04:05:26 +0000 (Wed, 04 Jan 2012)
New Revision: 14696
Added:
boost/branches/1.46.1/debian/patches/mpi-allocator-c++0x.patch
Modified:
boost/branches/1.46.1/debian/changelog
boost/branches/1.46.1/debian/patches/series
Log:
Workaround for Boost.MPI / c++0x issue.
Modified: boost/branches/1.46.1/debian/changelog
===================================================================
--- boost/branches/1.46.1/debian/changelog 2012-01-04 03:53:13 UTC (rev 14695)
+++ boost/branches/1.46.1/debian/changelog 2012-01-04 04:05:26 UTC (rev 14696)
@@ -2,8 +2,12 @@
* patches/gcc-4.7-threading-detection.patch: New, from upstream. Enable
gcc 4.7 threading detection. Closes: #654425.
+
+ * patches/mpi-allocator-c++0x.patch: New. Workaround to enable using
+ Boost.MPI with -std=c++0x mode on gcc 4.6. Fix will be in gcc 4.6.3
+ and 4.7. Closes: #639862.
- -- Steve M. Robbins <smr at debian.org> Tue, 03 Jan 2012 21:32:32 -0600
+ -- Steve M. Robbins <smr at debian.org> Tue, 03 Jan 2012 22:04:53 -0600
boost1.46 (1.46.1-7) unstable; urgency=low
Added: boost/branches/1.46.1/debian/patches/mpi-allocator-c++0x.patch
===================================================================
--- boost/branches/1.46.1/debian/patches/mpi-allocator-c++0x.patch (rev 0)
+++ boost/branches/1.46.1/debian/patches/mpi-allocator-c++0x.patch 2012-01-04 04:05:26 UTC (rev 14696)
@@ -0,0 +1,24 @@
+Description: Fix include of <boost/mpi.hpp> on gcc < 4.6.3
+ Workaround proposed in boost Trac ticket to allow using
+ -std=c++0x with gcc 4.6. It turns out to be a gcc
+ bug that is fixed for gcc 4.6.3 and 4.7.
+Author: Petar Marendic
+Bug: 639862
+Forwarded: https://svn.boost.org/trac/boost/ticket/5538
+
+
+--- boost1.46-1.46.1.orig/boost/mpi/allocator.hpp
++++ boost1.46-1.46.1/boost/mpi/allocator.hpp
+@@ -170,6 +170,12 @@
+ new ((void *)p) T(val);
+ }
+
++ /* Default construct a value of type T at the location referenced by p. */
++ void construct(pointer p)
++ {
++ new ((void *)p) T();
++ }
++
+ /** Destroy the object referenced by @c p. */
+ void destroy(pointer p)
+ {
Modified: boost/branches/1.46.1/debian/patches/series
===================================================================
--- boost/branches/1.46.1/debian/patches/series 2012-01-04 03:53:13 UTC (rev 14695)
+++ boost/branches/1.46.1/debian/patches/series 2012-01-04 04:05:26 UTC (rev 14696)
@@ -12,3 +12,4 @@
boost-1.44-py3.1.patch
changeset_71050.diff
gcc-4.7-threading-detection.patch
+mpi-allocator-c++0x.patch
More information about the pkg-boost-commits
mailing list