Skip to content
Snippets Groups Projects
Commit 6c5f00a2 authored by Oliver Sander's avatar Oliver Sander
Browse files

operator<< should take the array by const-reference, not by value

[[Imported from SVN: r5910]]
parent c6e7ae4e
Branches
Tags
No related merge requests found
......@@ -151,7 +151,7 @@ namespace Dune
#endif
//! Output operator for array
template <class T, int N>
inline std::ostream& operator<< (std::ostream& s, array<T,N> e)
inline std::ostream& operator<< (std::ostream& s, const array<T,N>& e)
{
s << "[";
for (int i=0; i<N-1; i++) s << e[i] << ",";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment