mirror of
https://github.com/boostorg/odeint.git
synced 2026-01-19 04:22:12 +00:00
Merge pull request #70 from boostorg/function
Remove uses of boost::function
This commit is contained in:
1
.github/workflows/ci.yml
vendored
1
.github/workflows/ci.yml
vendored
@@ -81,7 +81,6 @@ jobs:
|
||||
compiler: clang-12, cxxstd: '03,11,14,17,20', os: ubuntu-20.04, stdlib: libc++, install: 'clang-12 libc++-12-dev libc++abi-12-dev' }
|
||||
|
||||
# OSX, clang
|
||||
- { compiler: clang, cxxstd: '03,11,14,17,2a', os: macos-11 }
|
||||
- { compiler: clang, cxxstd: '03,11,14,17,20', os: macos-12 }
|
||||
- { name: MacOS w/ clang and sanitizers,
|
||||
compiler: clang, cxxstd: '03,11,14,17,20,2b', os: macos-13, sanitize: yes }
|
||||
|
||||
@@ -18,7 +18,6 @@ target_link_libraries(boost_numeric_odeint
|
||||
Boost::compute
|
||||
Boost::config
|
||||
Boost::core
|
||||
Boost::function
|
||||
Boost::fusion
|
||||
Boost::iterator
|
||||
Boost::math
|
||||
|
||||
@@ -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 {
|
||||
@@ -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 )
|
||||
|
||||
@@ -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 {
|
||||
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user