From fa591ebdbded6e88576ced43d443831dc0eced0c Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Mon, 7 Apr 2025 20:22:06 -0600 Subject: [PATCH] Qualify names with std::. --- include/deal.II/base/utilities.h | 4 ++-- source/sundials/ida.cc | 8 ++++---- source/sundials/kinsol.cc | 8 ++++---- 3 files changed, 10 insertions(+), 10 deletions(-) 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; }; -- 2.39.5