]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/numeric/odeint/test/regression/regression_149.cpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / libs / numeric / odeint / test / regression / regression_149.cpp
index a61082b306b186d91a1a454449bca929575da0fa..2790d683f2934972dec1926a18b1365de9a9f8e3 100644 (file)
@@ -52,11 +52,20 @@ struct perform_test
         bulirsch_stoer< state_type > stepper( 1e-9, 0.0, 0.0, 0.0 );
         state_type x( 3, 10.0 );
 
-        auto iter = boost::find_if(
+        print( boost::find_if(
             make_adaptive_time_range( stepper, rhs, x, 0.0, 1.0, 0.01 ),
-            []( const std::pair< const state_type &, double > &x )
-        { return ( x.first[0] < 0.0 ); } );
+            pred ) );
 
+    }
+
+    static bool pred( const std::pair< const state_type &, double > &x )
+    {
+        return ( x.first[0] < 0.0 );
+    }
+
+    template<class Iterator>
+    void print( Iterator iter )
+    {
         std::cout << iter->second << "\t" << iter->first[0] << "\t"
                   << iter->first[1] << "\t" << iter->first[2] << "\n";
     }