File fix-boost-fuckery.patch of Package amoebax

diff -Naur amoebax-1.0.0.org/lib/benzaiten/benzaiten/tweeners/Simple.cpp amoebax-1.0.0/lib/benzaiten/benzaiten/tweeners/Simple.cpp
--- amoebax-1.0.0.org/lib/benzaiten/benzaiten/tweeners/Simple.cpp	2020-02-08 10:55:19.733455912 +0100
+++ amoebax-1.0.0/lib/benzaiten/benzaiten/tweeners/Simple.cpp	2020-03-18 18:35:21.676448389 +0100
@@ -25,15 +25,6 @@
 
 using namespace benzaiten::tweener;
 
-namespace {
-    // This is necessary to compiler under OS X; all other
-    // platforms accept a pointer to std::swap<double>.
-    void swap_double (double &a, double &b) {
-        using std::swap;
-        swap (a, b);
-    }
-}
-
 Simple::Simple (double begin, double end, double duration, Setter setter,
         EasingFunction easing)
     : Tweener ()
@@ -54,7 +45,7 @@
     , duration (duration)
     , easing (easing)
     , end (end)
-    , setter (boost::bind (&swap_double, boost::ref (value), _1))
+    , setter ([&value](double v) {value = v; })
 {
 }
 
@@ -66,7 +57,7 @@
     , duration (duration)
     , easing (easing)
     , end (end)
-    , setter (boost::bind (&swap_double, boost::ref (value), _1))
+    , setter ([&value](double v) { value = v; })
 {
 }
 
diff -Naur amoebax-1.0.0.org/src/contexts/Normal.cpp amoebax-1.0.0/src/contexts/Normal.cpp
--- amoebax-1.0.0.org/src/contexts/Normal.cpp	2020-02-08 10:55:14.769420977 +0100
+++ amoebax-1.0.0/src/contexts/Normal.cpp	2020-03-18 18:38:19.553712966 +0100
@@ -74,7 +74,7 @@
     this->versus = this->addGraphic (versus_texture, Game::screen ().half_width,
             Game::screen ().height + OUTSIDE);
 
-    this->themes = boost::assign::list_of<Theme>
+    boost::assign::push_back(this->themes)
         ("kquita", boost::bind(&player::Shitty::New))
         ("angus", boost::bind(&player::Simple::New, 0, false))
         ("catdog", boost::bind(&player::Simple::New, 0, true))
openSUSE Build Service is sponsored by