]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
operator must be inline to avoid linker conflict
authorguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 25 May 2004 12:17:10 +0000 (12:17 +0000)
committerguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 25 May 2004 12:17:10 +0000 (12:17 +0000)
git-svn-id: https://svn.dealii.org/trunk@9315 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/vector.h
deal.II/lac/include/lac/vector.templates.h

index 63b2ba2b2ff7ca7fdc1e7c19247037353c9ae117..b147e99251934c2505637a84294952d87d2f268e 100644 (file)
@@ -828,6 +828,19 @@ void Vector<Number>::reinit (const unsigned int n, const bool fast)
 
 
 
+template <typename Number>
+inline
+Vector<Number> & Vector<Number>::operator = (const Number s)
+{
+  if (s != 0.)
+    Assert (dim!=0, ExcEmptyVector());
+  if (dim!=0)
+    std::fill (begin(), end(), s);
+  return *this;
+}
+
+
+
 template <typename Number>
 inline
 unsigned int Vector<Number>::size () const
index 737c7114e8dd8078eb76d204872d0842737ab98f..07ea7fd246731ef392ea11aa144d2059ebda9a39 100644 (file)
@@ -630,18 +630,6 @@ Vector<Number>::operator = (const Vector<Number2>& v)
 
 
 
-template <typename Number>
-Vector<Number> & Vector<Number>::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 <typename Number>

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.