]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Uh, fix very subtle bug: cxx thought that this line
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 29 May 2002 12:44:35 +0000 (12:44 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 29 May 2002 12:44:35 +0000 (12:44 +0000)
n_pols_to(dim+1, 0)
had the signature
  std::vector<T>::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

index 32e140eea2ec83615e06e2fb92de820a49a1c54f..531938bdaf33a2d2ba7ddfe1b97a2e370bfcf62e 100644 (file)
@@ -218,7 +218,7 @@ TensorProductPolynomials(const typename std::vector<Pol> &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();
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.