From: Wolfgang Bangerth Date: Thu, 21 Sep 2017 15:46:06 +0000 (-0600) Subject: Make some function arguments 'const'. X-Git-Tag: v9.0.0-rc1~1049^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b124c3d3c2a06b9422382f643c7b92545f042230;p=dealii.git Make some function arguments 'const'. --- diff --git a/include/deal.II/grid/grid_tools_cache_update_flags.h b/include/deal.II/grid/grid_tools_cache_update_flags.h index b91ffcd0af..39bfd67f79 100644 --- a/include/deal.II/grid/grid_tools_cache_update_flags.h +++ b/include/deal.II/grid/grid_tools_cache_update_flags.h @@ -70,7 +70,8 @@ namespace GridTools */ template inline - StreamType &operator << (StreamType &s, CacheUpdateFlags u) + StreamType &operator << (StreamType &s, + const CacheUpdateFlags u) { s << " CacheUpdateFlags"; if (u & update_vertex_to_cell_map) s << "|vertex_to_cell_map"; @@ -93,7 +94,8 @@ namespace GridTools */ inline CacheUpdateFlags - operator | (CacheUpdateFlags f1, CacheUpdateFlags f2) + operator | (const CacheUpdateFlags f1, + const CacheUpdateFlags f2) { return static_cast ( static_cast (f1) | @@ -111,7 +113,7 @@ namespace GridTools */ inline CacheUpdateFlags - operator ~ (CacheUpdateFlags f1) + operator ~ (const CacheUpdateFlags f1) { return static_cast ( ~static_cast (f1) @@ -128,7 +130,8 @@ namespace GridTools */ inline CacheUpdateFlags & - operator |= (CacheUpdateFlags &f1, CacheUpdateFlags f2) + operator |= (CacheUpdateFlags &f1, + const CacheUpdateFlags f2) { f1 = f1 | f2; return f1; @@ -146,7 +149,8 @@ namespace GridTools */ inline CacheUpdateFlags - operator & (CacheUpdateFlags f1, CacheUpdateFlags f2) + operator & (const CacheUpdateFlags f1, + const CacheUpdateFlags f2) { return static_cast ( static_cast (f1) & @@ -162,7 +166,8 @@ namespace GridTools */ inline CacheUpdateFlags & - operator &= (CacheUpdateFlags &f1, CacheUpdateFlags f2) + operator &= (CacheUpdateFlags &f1, + const CacheUpdateFlags f2) { f1 = f1 & f2; return f1;