2
0
mirror of https://github.com/boostorg/odeint.git synced 2026-01-19 04:22:12 +00:00

Add using declarations to bring placeholders _1, _2 into scope

Fixes #97
This commit is contained in:
Richard
2025-09-30 15:59:20 -06:00
committed by Matt Borland
parent 4ea46366d5
commit 40a2c22e26

View File

@@ -15,6 +15,7 @@
#include <iostream>
#include <array>
#include <functional>
#include <boost/numeric/odeint.hpp>
using namespace std;
@@ -119,6 +120,9 @@ int main( int argc , char **argv )
// Symplectic harmonic oscillator example
{
using std::placeholders::_1;
using std::placeholders::_2;
double t( 0.0 ) , dt( 0.1 );
//[ symplectic_stepper_detail_example
pair< vector_type , vector_type > x;