From: bangerth Date: Thu, 17 Feb 2011 04:05:05 +0000 (+0000) Subject: Fix TableBase::operator= if T==bool. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7b9830b02c033617217364df37e5b06b554e567d;p=dealii-svn.git Fix TableBase::operator= if T==bool. git-svn-id: https://svn.dealii.org/trunk@23382 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/doc/news/changes.h b/deal.II/doc/news/changes.h index a6a9c34753..02fc43c602 100644 --- a/deal.II/doc/news/changes.h +++ b/deal.II/doc/news/changes.h @@ -83,6 +83,12 @@ should be fixed now. (Wolfgang Bangerth, 2011/02/16) +
  • Fixed: TableBase::operator= could not be compiled if the type of the +elements of the table was bool. This is now fixed. +
    +(Wolfgang Bangerth, 2011/02/16) +
  • +
  • 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. diff --git a/deal.II/include/deal.II/base/table.h b/deal.II/include/deal.II/base/table.h index 31ad01aa6b..a1e83aedc6 100644 --- a/deal.II/include/deal.II/base/table.h +++ b/deal.II/include/deal.II/base/table.h @@ -1926,7 +1926,7 @@ TableBase::operator = (const TableBase& 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; }