]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Qualify strcpy with std::
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 4 Oct 2013 13:03:44 +0000 (13:03 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 4 Oct 2013 13:03:44 +0000 (13:03 +0000)
git-svn-id: https://svn.dealii.org/trunk@31117 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/lac/arpack_solver.h

index 9c3e1b2c8324da5b1439d2d7ad9ffd3311ce437f..4e6ae9008c7b9d0011cb6b2bc7735d8cec7d53bd 100644 (file)
@@ -21,6 +21,9 @@
 #include <deal.II/base/smartpointer.h>
 #include <deal.II/lac/solver_control.h>
 
+#include <cstring>
+
+
 #ifdef DEAL_II_WITH_ARPACK
 
 DEAL_II_NAMESPACE_OPEN
@@ -284,31 +287,31 @@ void ArpackSolver::solve (
   switch (additional_data.eigenvalue_of_interest)
     {
     case algebraically_largest:
-      strcpy (which, "LA");
+      std::strcpy (which, "LA");
       break;
     case algebraically_smallest:
-      strcpy (which, "SA");
+      std::strcpy (which, "SA");
       break;
     case largest_magnitude:
-      strcpy (which, "LM");
+      std::strcpy (which, "LM");
       break;
     case smallest_magnitude:
-      strcpy (which, "SM");
+      std::strcpy (which, "SM");
       break;
     case largest_real_part:
-      strcpy (which, "LR");
+      std::strcpy (which, "LR");
       break;
     case smallest_real_part:
-      strcpy (which, "SR");
+      std::strcpy (which, "SR");
       break;
     case largest_imaginary_part:
-      strcpy (which, "LI");
+      std::strcpy (which, "LI");
       break;
     case smallest_imaginary_part:
-      strcpy (which, "SI");
+      std::strcpy (which, "SI");
       break;
     case both_ends:
-      strcpy (which, "BE");
+      std::strcpy (which, "BE");
       break;
     }
 

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.