Skip to content

Commit

Permalink
Remove uses of boost::function
Browse files Browse the repository at this point in the history
  • Loading branch information
mborland committed Jan 11, 2024
1 parent 1838e01 commit 15cd9f9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ target_link_libraries(boost_numeric_odeint
Boost::compute
Boost::config
Boost::core
Boost::function
Boost::fusion
Boost::iterator
Boost::math
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@
#define BOOST_NUMERIC_ODEINT_INTEGRATE_OBSERVER_COLLECTION_HPP_INCLUDED

#include <vector>

#include <boost/function.hpp>
#include <functional>

namespace boost {
namespace numeric {
Expand All @@ -31,7 +30,7 @@ class observer_collection
{
public:

typedef boost::function< void( const State& , const Time& ) > observer_type;
typedef std::function< void( const State& , const Time& ) > observer_type;
typedef std::vector< observer_type > collection_type;

void operator()( const State& x , Time t )
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@
#define BOOST_NUMERIC_ODEINT_INTEGRATE_OBSERVER_COLLECTION_HPP_INCLUDED

#include <vector>

#include <boost/function.hpp>
#include <functional>

namespace boost {
namespace numeric {
Expand All @@ -31,7 +30,7 @@ class observer_collection
{
public:

typedef boost::function< void( const State& , const Time& ) > observer_type;
typedef std::function< void( const State& , const Time& ) > observer_type;
typedef std::vector< observer_type > collection_type;

void operator()( const State& x , Time t )
Expand Down

0 comments on commit 15cd9f9

Please sign in to comment.