]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Qualify names with std::. 18342/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Tue, 8 Apr 2025 02:22:06 +0000 (20:22 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Tue, 8 Apr 2025 03:18:11 +0000 (21:18 -0600)
include/deal.II/base/utilities.h
source/sundials/ida.cc
source/sundials/kinsol.cc

index c139a8c66b092a761c0cc05d207d4e1c0e0afe17..98be5360d1645701b48ad8185f04174bc3165330 100644 (file)
@@ -1291,7 +1291,7 @@ namespace Utilities
 
       // Get the size of the vector
       typename std::vector<T>::size_type vector_size;
-      memcpy(&vector_size, &*cbegin, sizeof(vector_size));
+      std::memcpy(&vector_size, &*cbegin, sizeof(vector_size));
 
       Assert(static_cast<std::ptrdiff_t>(cend - cbegin) ==
                static_cast<std::ptrdiff_t>(sizeof(vector_size) +
@@ -1339,7 +1339,7 @@ namespace Utilities
       using size_type = typename std::vector<T>::size_type;
       std::vector<char>::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<size_type> sizes(vector_size);
index f1bcd01679176bdd4eb628a2d6515dc5052fd70a..3e3844570bb65577d26e367b3e9ca16ee1c9db57 100644 (file)
@@ -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;
     };
 
index b957e4c2af15992bdda8f11da5ed5e5f691b3879..e5fee93e0ecbb6e02a284789fcf9a2859be483c8 100644 (file)
@@ -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;
         };
 

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.