[pkg-boost-devel] Bug#672397: merkaartor FTBFS due to a g++-4.7 issue in boost headers

Matthias Klose doko at debian.org
Tue May 29 03:48:00 UTC 2012


severity 672397 important
tags 672397 + moreinfo
thanks

is this really a boost bug? looks to me more than an issue in merkaartor. moving
the existing forward declaration up lets the build succeed.

Either this fix, or building with -fpermissive is certainly a better fix than
the one applied in merkaartor 0.17.2-6:

  * [887fc7cd] Use g++-4.6 to work around the g++-4.7 fuckup.
    Very ugly workaround for #672397.

Matthias
-------------- next part --------------
--- merkaartor-0.17.2.orig/src/Features/Feature.h
+++ merkaartor-0.17.2/src/Features/Feature.h
@@ -1,6 +1,13 @@
 #ifndef MERKATOR_MAPFEATURE_H_
 #define MERKATOR_MAPFEATURE_H_
 
+class Feature;
+namespace boost
+{
+    void intrusive_ptr_add_ref(Feature * p);
+    void intrusive_ptr_release(Feature * p);
+}
+
 #include "IFeature.h"
 #include "Maps/Coord.h"
 #include "MapView.h"
@@ -79,12 +86,6 @@
         int theLayer;
 };
 
-namespace boost
-{
-    void intrusive_ptr_add_ref(Feature * p);
-    void intrusive_ptr_release(Feature * p);
-}
-
 /// Used to store objects of the map
 class Feature : public IFeature
 {


More information about the pkg-boost-devel mailing list