Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ Subsequent commits will then include a new "Unreleased" section in preparation
for the next release.
-->

# Unreleased

- Added pragmas to two C++ source code files to suppress warnings
about deprecated declarations in the Boost library code when C++17
is used for compilation.

# BioCro C++ Framework VERSION 1.1.3

- Replaced `fabs` by `std::abs` in `quadratic_root.cpp` and
Expand Down
5 changes: 5 additions & 0 deletions ode_solver.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@
#define ODE_SOLVER_H

#include <vector>

#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#include <boost/numeric/odeint.hpp> // For use with ODEINT
#pragma GCC diagnostic pop

#include "state_map.h"
#include "dynamical_system.h"

Expand Down
4 changes: 4 additions & 0 deletions ode_solver_library/boost_ode_solvers.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
#ifndef BOOST_ODE_SOLVERS_H
#define BOOST_ODE_SOLVERS_H

#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#include <boost/numeric/ublas/vector.hpp>
#pragma GCC diagnostic pop

#include "../ode_solver.h"
#include "../dynamical_system_caller.h"
#include "../state_map.h" // for state_vector_map
Expand Down