Permalink
Browse files

Merge pull request #12820 from lindsayad/const-correctness

stdVector() on MooseArray can be marked const
  • Loading branch information...
lindsayad committed Feb 4, 2019
2 parents 14adc30 + 8968890 commit 6e7e92653696d1f8ed70e147e36d79bc92253414
Showing with 2 additions and 2 deletions.
  1. +2 −2 framework/include/utils/MooseArray.h
@@ -167,7 +167,7 @@ class MooseArray
*
* @return A _copy_ of the MooseArray contents.
*/
std::vector<T> stdVector();
std::vector<T> stdVector() const;

private:
/// Actual data pointer.
@@ -322,7 +322,7 @@ MooseArray<T>::operator=(const MooseArray<T> & rhs)

template <class T>
std::vector<T>
MooseArray<T>::stdVector()
MooseArray<T>::stdVector() const
{
return std::vector<T>(_data, _data + _size);
}

0 comments on commit 6e7e926

Please sign in to comment.