]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix TableBase<T,N>::operator= if T==bool.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 17 Feb 2011 04:05:05 +0000 (04:05 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 17 Feb 2011 04:05:05 +0000 (04:05 +0000)
git-svn-id: https://svn.dealii.org/trunk@23382 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/doc/news/changes.h
deal.II/include/deal.II/base/table.h

index a6a9c347533355bddeb80349c586914fcf77f75e..02fc43c6027b36786307374611a063ec339965ec 100644 (file)
@@ -83,6 +83,12 @@ should be fixed now.
 (Wolfgang Bangerth, 2011/02/16)
 </li>
 
+<li> Fixed: TableBase::operator= could not be compiled if the type of the
+elements of the table was <code>bool</code>. This is now fixed.
+<br>
+(Wolfgang Bangerth, 2011/02/16)
+</li>
+
 <li> Improved: The GridGenerator::hyper_shell function generated meshes in 3d
 that are valid but of poor quality upon refinement. There is now an additional
 option to generate a coarse mesh of 96 cells that has a much better quality.
index 31ad01aa6bb8158f8ad7889dca1c23b97ca5c608..a1e83aedc6b2abe71c711f77310157166e185eb7 100644 (file)
@@ -1926,7 +1926,7 @@ TableBase<N,T>::operator = (const TableBase<N,T>& m)
 {
   reinit (m.size());
   if (!empty())
-    std::copy (&m.values[0], &m.values[n_elements()], &values[0]);
+    std::copy (m.values.begin(), m.values.end(), values.begin());
 
   return *this;
 }

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.