From: Guido Kanschat Date: Tue, 25 May 2004 12:17:10 +0000 (+0000) Subject: operator must be inline to avoid linker conflict X-Git-Tag: v8.0.0~15130 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f0896ec5d21ce57e36436a32de6e56c113dcaae3;p=dealii.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