From: Wolfgang Bangerth Date: Wed, 29 May 2002 12:44:35 +0000 (+0000) Subject: Uh, fix very subtle bug: cxx thought that this line X-Git-Tag: v8.0.0~17979 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cd82ad6bd9cc09ef5ab72ccc15c1ecfb5e195272;p=dealii.git Uh, fix very subtle bug: cxx thought that this line n_pols_to(dim+1, 0) had the signature std::vector::vector (InputIterator, InputIterator, Allocator) Why? Because both args are (signed) integers, and it wanted to convert these to pointers, rather than the first to size_t and the second to T=unsigned int. Fix this by using the fact that the zero initializer is implied when omitted, so just leave the size of the array. git-svn-id: https://svn.dealii.org/trunk@5929 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/base/include/base/tensor_product_polynomials.h b/deal.II/base/include/base/tensor_product_polynomials.h index 32e140eea2..531938bdaf 100644 --- a/deal.II/base/include/base/tensor_product_polynomials.h +++ b/deal.II/base/include/base/tensor_product_polynomials.h @@ -218,7 +218,7 @@ TensorProductPolynomials(const typename std::vector &pols) : polynomials (pols.begin(), pols.end()), n_tensor_pols(power(pols.size(), dim)), - n_pols_to(dim+1, 0) + n_pols_to(dim+1) { const unsigned int n_pols=polynomials.size();