Skip to content

Commit 40a2c22

Browse files
LegalizeAdulthoodmborland
authored andcommitted
Add using declarations to bring placeholders _1, _2 into scope
Fixes #97
1 parent 4ea4636 commit 40a2c22

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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)