From: wolf Date: Wed, 29 May 2002 12:44:35 +0000 (+0000) Subject: Uh, fix very subtle bug: cxx thought that this line X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b7d81d1b98b5af05d8352cd81117bc16fb8c3dbe;p=dealii-svn.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();