From 5f444cb76c7529af51e870400d3d769a833dd799 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Fri, 4 Oct 2013 13:03:44 +0000 Subject: [PATCH] Qualify strcpy with std:: git-svn-id: https://svn.dealii.org/trunk@31117 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/include/deal.II/lac/arpack_solver.h | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/deal.II/include/deal.II/lac/arpack_solver.h b/deal.II/include/deal.II/lac/arpack_solver.h index 9c3e1b2c83..4e6ae9008c 100644 --- a/deal.II/include/deal.II/lac/arpack_solver.h +++ b/deal.II/include/deal.II/lac/arpack_solver.h @@ -21,6 +21,9 @@ #include #include +#include + + #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; } -- 2.39.5