From: hartmann Date: Tue, 24 Feb 2004 07:35:11 +0000 (+0000) Subject: Add some missing std's and some missing static_casts. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=22989490d2e6ce6e52b83af77c2f7b5fb37fd9fc;p=dealii-svn.git Add some missing std's and some missing static_casts. git-svn-id: https://svn.dealii.org/trunk@8513 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/deal.II/subdomain_ids.cc b/tests/deal.II/subdomain_ids.cc index 8ea0687d06..ce6c3ef2c7 100644 --- a/tests/deal.II/subdomain_ids.cc +++ b/tests/deal.II/subdomain_ids.cc @@ -150,7 +150,7 @@ void test () dof_handler.distribute_dofs (fe); const unsigned int cells_per_direction - = static_cast(rint(pow(tria.n_active_cells(), 1./dim))); + = static_cast(rint(std::pow(tria.n_active_cells(), 1./dim))); std::vector selected_dofs (dof_handler.n_dofs()); for (unsigned int subdomain=0; subdomain<(1<(cells_per_direction/2+1),dim), ExcNumberMismatch(std::count (selected_dofs.begin(), selected_dofs.end(), true), - (int)pow(cells_per_direction/2+1,dim))); + std::pow(static_cast(cells_per_direction/2+1),dim))); } deallog << "Check 4 (dim=" << dim << ") ok" << std::endl; };