From f0896ec5d21ce57e36436a32de6e56c113dcaae3 Mon Sep 17 00:00:00 2001 From: Guido Kanschat Date: Tue, 25 May 2004 12:17:10 +0000 Subject: [PATCH] operator must be inline to avoid linker conflict git-svn-id: https://svn.dealii.org/trunk@9315 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/lac/include/lac/vector.h | 13 +++++++++++++ deal.II/lac/include/lac/vector.templates.h | 12 ------------ 2 files changed, 13 insertions(+), 12 deletions(-) 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 -- 2.39.5