From b124c3d3c2a06b9422382f643c7b92545f042230 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Thu, 21 Sep 2017 09:46:06 -0600 Subject: [PATCH] Make some function arguments 'const'. --- .../grid/grid_tools_cache_update_flags.h | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) 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; -- 2.39.5