From: Wolfgang Bangerth Date: Sun, 28 Jun 2009 19:17:36 +0000 (+0000) Subject: Disambiguate call to std::pow. X-Git-Tag: v8.0.0~7573 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8ae63942bada678588cd61a36794613c011ab797;p=dealii.git Disambiguate call to std::pow. git-svn-id: https://svn.dealii.org/trunk@18982 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/base/include/base/tensor.h b/deal.II/base/include/base/tensor.h index 05ee127247..95553ae6c3 100644 --- a/deal.II/base/include/base/tensor.h +++ b/deal.II/base/include/base/tensor.h @@ -1436,13 +1436,13 @@ double determinant (const Tensor<2,dim> &t) for (unsigned int j=0; j(k+1)) * determinant (minor); det += t[dim-1][k] * cofactor; } - return std::pow (-1, dim) * det; + return std::pow (-1., static_cast(dim)) * det; }