Skip to content

Commit c4573f6

Browse files
Add using declarations to bring placeholders _1, _2 into scope
Fixes #97
1 parent 91a4a91 commit c4573f6

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

examples/stepper_details.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
#include <iostream>
1717
#include <array>
18+
#include <functional>
1819
#include <boost/numeric/odeint.hpp>
1920

2021
using namespace std;
@@ -119,6 +120,9 @@ int main( int argc , char **argv )
119120

120121
// Symplectic harmonic oscillator example
121122
{
123+
using std::placeholders::_1;
124+
using std::placeholders::_2;
125+
122126
double t( 0.0 ) , dt( 0.1 );
123127
//[ symplectic_stepper_detail_example
124128
pair< vector_type , vector_type > x;

0 commit comments

Comments
 (0)