File Rivet-compatibility-with-old-boost.patch of Package Rivet
Index: Rivet-2.1.2/include/Rivet/Tools/RivetBoost.hh
===================================================================
--- Rivet-2.1.2.orig/include/Rivet/Tools/RivetBoost.hh
+++ Rivet-2.1.2/include/Rivet/Tools/RivetBoost.hh
@@ -10,10 +10,13 @@
#include "boost/utility.hpp"
#include "boost/foreach.hpp"
+#include "boost/version.hpp"
#ifndef foreach
namespace boost {
// Suggested work-around for https://svn.boost.org/trac/boost/ticket/6131
+ #if BOOST_VERSION != 104900
namespace BOOST_FOREACH = foreach;
+ #endif
}
#define foreach BOOST_FOREACH
#endif