From: guido Date: Tue, 25 May 2004 12:17:10 +0000 (+0000) Subject: operator must be inline to avoid linker conflict X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c995beb1710e489df7dbb35b3e88832e97e5a65c;p=dealii-svn.git operator must be inline to avoid linker conflict git-svn-id: https://svn.dealii.org/trunk@9315 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/lac/include/lac/vector.h b/deal.II/lac/include/lac/vector.h index 63b2ba2b2f..b147e99251 100644 --- a/deal.II/lac/include/lac/vector.h +++ b/deal.II/lac/include/lac/vector.h @@ -828,6 +828,19 @@ void Vector::reinit (const unsigned int n, const bool fast) +template +inline +Vector & Vector::operator = (const Number s) +{ + if (s != 0.) + Assert (dim!=0, ExcEmptyVector()); + if (dim!=0) + std::fill (begin(), end(), s); + return *this; +} + + + template inline unsigned int Vector::size () const diff --git a/deal.II/lac/include/lac/vector.templates.h b/deal.II/lac/include/lac/vector.templates.h index 737c7114e8..07ea7fd246 100644 --- a/deal.II/lac/include/lac/vector.templates.h +++ b/deal.II/lac/include/lac/vector.templates.h @@ -630,18 +630,6 @@ Vector::operator = (const Vector& v) -template -Vector & Vector::operator = (const Number s) -{ - if (s != 0.) - Assert (dim!=0, ExcEmptyVector()); - if (dim!=0) - std::fill (begin(), end(), s); - return *this; -} - - - #ifdef DEAL_II_USE_PETSC template