One of the access operators returned by value, instead of by reference.
<a name="general"></a>
<h3>General</h3>
<ol>
+ <li> Fixed: Tensor::operator[] that takes TableIndices as a parameter no
+ longer returns by value, but rather by reference.
+ <br>
+ (Jean-Paul Pelteret, 2016/01/08)
+ </li>
+
<li> New: constrained_linear_operator() and constrained_right_hand_side()
provide a generic mechanism of applying constraints to a LinearOperator.
A detailed explanation with example code is given in the @ref constraints
/**
* Read access using TableIndices <tt>indices</tt>
*/
- Number operator [] (const TableIndices<rank_> &indices) const;
+ const Number &operator [] (const TableIndices<rank_> &indices) const;
/**
* Read and write access using TableIndices <tt>indices</tt>
template <int rank_, int dim, typename Number>
inline
-Number
+const Number &
Tensor<rank_,dim,Number>::operator[] (const TableIndices<rank_> &indices) const
{
Assert(dim != 0, ExcMessage("Cannot access an object of type Tensor<rank_,0,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