header file. Reasons:
1/ can be optimized out by the compiler if fill value == 0 (memset)
2/ works around a recent linker error in the base tests
git-svn-id: https://svn.dealii.org/trunk@5381
0785d39b-7218-0410-832d-
ea1e28bc413d
+
+template <typename Number>
+inline
+Vector<Number> & Vector<Number>::operator = (const Number s)
+{
+ Assert (dim!=0, ExcEmptyVector());
+ std::fill (begin(), end(), s);
+ return *this;
+}
+
+
+
/**
* Global function @p{swap} which overloads the default implementation
* of the C++ standard library which uses a temporary object. The
-template <typename Number>
-Vector<Number>& Vector<Number>::operator = (const Number s)
-{
- Assert (dim!=0, ExcEmptyVector());
- std::fill (begin(), end(), s);
- return *this;
-}
-
-
-
template <typename Number>
Vector<Number>&
Vector<Number>::operator = (const Vector<Number>& v)
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