From: Wolfgang Bangerth Date: Tue, 8 Apr 2025 02:22:06 +0000 (-0600) Subject: Qualify names with std::. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F18342%2Fhead;p=dealii.git Qualify names with std::. --- diff --git a/include/deal.II/base/utilities.h b/include/deal.II/base/utilities.h index c139a8c66b..98be5360d1 100644 --- a/include/deal.II/base/utilities.h +++ b/include/deal.II/base/utilities.h @@ -1291,7 +1291,7 @@ namespace Utilities // Get the size of the vector typename std::vector::size_type vector_size; - memcpy(&vector_size, &*cbegin, sizeof(vector_size)); + std::memcpy(&vector_size, &*cbegin, sizeof(vector_size)); Assert(static_cast(cend - cbegin) == static_cast(sizeof(vector_size) + @@ -1339,7 +1339,7 @@ namespace Utilities using size_type = typename std::vector::size_type; std::vector::const_iterator iterator = cbegin; size_type vector_size; - memcpy(&vector_size, &*iterator, sizeof(vector_size)); + std::memcpy(&vector_size, &*iterator, sizeof(vector_size)); object.clear(); object.resize(vector_size); std::vector sizes(vector_size); diff --git a/source/sundials/ida.cc b/source/sundials/ida.cc index f1bcd01679..3e3844570b 100644 --- a/source/sundials/ida.cc +++ b/source/sundials/ida.cc @@ -356,10 +356,10 @@ namespace SUNDIALS } if (LS->ops) { - free(LS->ops); + std::free(LS->ops); LS->ops = nullptr; } - free(LS); + std::free(LS); LS = nullptr; return 0; }; @@ -420,10 +420,10 @@ namespace SUNDIALS } if (A->ops) { - free(A->ops); + std::free(A->ops); A->ops = nullptr; } - free(A); + std::free(A); A = nullptr; }; diff --git a/source/sundials/kinsol.cc b/source/sundials/kinsol.cc index b957e4c2af..e5fee93e0e 100644 --- a/source/sundials/kinsol.cc +++ b/source/sundials/kinsol.cc @@ -414,10 +414,10 @@ namespace SUNDIALS } if (LS->ops) { - free(LS->ops); + std::free(LS->ops); LS->ops = nullptr; } - free(LS); + std::free(LS); LS = nullptr; return 0; }; @@ -471,10 +471,10 @@ namespace SUNDIALS } if (A->ops) { - free(A->ops); + std::free(A->ops); A->ops = nullptr; } - free(A); + std::free(A); A = nullptr; };