]> https://gitweb.dealii.org/ - dealii.git/commit
Tests: optimization/* add missing include 14696/head
authorMatthias Maier <tamiko@43-1.org>
Tue, 17 Jan 2023 20:54:34 +0000 (14:54 -0600)
committerMatthias Maier <tamiko@43-1.org>
Tue, 17 Jan 2023 20:56:20 +0000 (14:56 -0600)
commit0f30de7070797a8fc5a105ceeee9c6766f358f20
tree4f0cef8cff340b49de85f6046a95e3e227886a3d
parentbeae2ebb37dddcf39a0c446ae2d173635cf7acae
Tests: optimization/* add missing include

Some of the optimization tests use a std::function object but forget to
include the header. These tests work with older versions of libstdc++
due to some transitive include but fail for current versions:

/home/testsuite/workspace/regression_tests/dealii/include/deal.II/optimization/line_minimization.h:323:16: error: 'function' in namespace 'std' does not name a template type
  323 |     const std::function<std::pair<NumberType, NumberType>(const NumberType x)>
      |                ^~~~~~~~
/home/testsuite/workspace/regression_tests/dealii/include/deal.II/optimization/line_minimization.h:30:1: note: 'std::function' is defined in header '<functional>'; did you forget to '#include <functional>'?
   29 | #include <fstream>
  +++ |+#include <functional>
   30 | #include <limits>
tests/optimization/cubic_fit.cc
tests/optimization/cubic_fit_three_points.cc
tests/optimization/line_minimization.cc
tests/optimization/line_minimization_02.cc
tests/optimization/line_minimization_03.cc
tests/optimization/line_minimization_03b.cc
tests/optimization/quadratic_fit.cc

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.