diff --git a/docs/web/CMakeLists.txt b/docs/web/CMakeLists.txt
index 6e02defdf..738fc1c8a 100644
--- a/docs/web/CMakeLists.txt
+++ b/docs/web/CMakeLists.txt
@@ -171,6 +171,7 @@ pandoc_html(release-notes-4.0 "--toc" "--toc-depth=2" "--number-sections")
pandoc_html(release-notes-4.0.1 "--toc" "--toc-depth=2" "--number-sections")
pandoc_html(release-notes-4.0.2 "--toc" "--toc-depth=2" "--number-sections")
pandoc_html(release-notes-4.0.3 "--toc" "--toc-depth=2" "--number-sections")
+pandoc_html(release-notes-4.0.4 "--toc" "--toc-depth=2" "--number-sections")
pandoc_html(release-notes-4.1 "--toc" "--toc-depth=2" "--number-sections")
pandoc_html(release-notes-4.1.1 "--toc" "--toc-depth=2" "--number-sections")
pandoc_html(release-notes-4.1.2 "--toc" "--toc-depth=2" "--number-sections")
diff --git a/docs/web/mfront-template.html b/docs/web/mfront-template.html
index cc20d8bf2..03339642e 100644
--- a/docs/web/mfront-template.html
+++ b/docs/web/mfront-template.html
@@ -163,6 +163,8 @@
Version 4.0.0
Version 4.0.1
Version 4.0.2
+ Version 4.0.3
+ Version 4.0.4
Versions 4.1.x
diff --git a/mfront/src/CppMaterialPropertyInterface.cxx b/mfront/src/CppMaterialPropertyInterface.cxx
index e2aa438de..ab6345fb1 100644
--- a/mfront/src/CppMaterialPropertyInterface.cxx
+++ b/mfront/src/CppMaterialPropertyInterface.cxx
@@ -438,7 +438,21 @@ namespace mfront {
}
}
src << ") const\n{\n"
- << "using namespace std;\n";
+ << "using namespace std;\n"
+ << "using tfel::math::invert_type;\n"
+ << "using tfel::math::result_type;\n"
+ << "using tfel::math::derivative_type;\n";
+ if (useQuantities(mpd)) {
+ src << "using PhysicalConstants [[maybe_unused]] = "
+ << "tfel::PhysicalConstants;\n";
+ } else {
+ src << "using PhysicalConstants [[maybe_unused]] = "
+ << "tfel::PhysicalConstants;\n";
+ }
+ src << "[[maybe_unused]] auto min = [](const auto a, const auto b) "
+ << "{ return a < b ? a : b; };\n"
+ << "[[maybe_unused]] auto max = [](const auto a, const auto b) "
+ << "{ return a > b ? a : b; };\n";
writeMaterialLaws(src, mpd.materialLaws);
writeStaticVariables(src, mpd.staticVars, fd.fileName);
for (const auto& i : mpd.inputs) {