]> https://gitweb.dealii.org/ - dealii.git/commitdiff
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)
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

index d1175ba9abd512a5aebdd79d5c0a9b59f071f29c..1866f03cb146560938d8184fd8a4eaaf954c9e4f 100644 (file)
@@ -21,6 +21,7 @@
 #include <deal.II/optimization/line_minimization.h>
 
 #include <fstream>
+#include <functional>
 #include <iostream>
 
 #include "../tests.h"
index 4fa4b1f5432b0486af0f2b1150caf48877aa194f..03f774fc56c674baf6a01b9293de7e154e14dfbc 100644 (file)
@@ -21,6 +21,7 @@
 #include <deal.II/optimization/line_minimization.h>
 
 #include <fstream>
+#include <functional>
 #include <iostream>
 
 #include "../tests.h"
index 9c7fbe8320c02865ac01084a661111b9e0e5e4d8..b3b124129c7a0f5d34a4a3e05f30113b22726415 100644 (file)
@@ -20,6 +20,7 @@
 #include <deal.II/optimization/line_minimization.h>
 
 #include <fstream>
+#include <functional>
 #include <iostream>
 
 #include "../tests.h"
index e7872fe30097f78f68ffda1cb259c25241eaa8c3..ecdfc38ba51575ce3aafe7ba31a551ece314cde0 100644 (file)
@@ -22,6 +22,7 @@
 #include <deal.II/optimization/line_minimization.h>
 
 #include <fstream>
+#include <functional>
 #include <iostream>
 
 #include "../tests.h"
index 43cf485f40bb71c01c672c4fae44e30d2a9b2c2a..50705730c37241f0072ba85784d4d39b74d63c2b 100644 (file)
@@ -22,6 +22,7 @@
 #include <deal.II/optimization/line_minimization.h>
 
 #include <fstream>
+#include <functional>
 #include <iostream>
 
 #include "../tests.h"
index 5f889e53dd57917cc78753499a7f98e98cd9bfc2..c605c307c0912e7d90c789c8884d36486d4e354d 100644 (file)
@@ -20,6 +20,7 @@
 #include <deal.II/optimization/line_minimization.h>
 
 #include <fstream>
+#include <functional>
 #include <iostream>
 
 #include "../tests.h"
index 1b9510cfd43c644cd511890443115e7d6848561d..9bc646448621b0f947766a45e802ad766e5a16ef 100644 (file)
@@ -20,6 +20,7 @@
 #include <deal.II/optimization/line_minimization.h>
 
 #include <fstream>
+#include <functional>
 #include <iostream>
 
 #include "../tests.h"

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.