From cd82ad6bd9cc09ef5ab72ccc15c1ecfb5e195272 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Wed, 29 May 2002 12:44:35 +0000 Subject: [PATCH] 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 --- deal.II/base/include/base/tensor_product_polynomials.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.39.5