From 38ed17e4b842e8609fc2651ea2590b850e91fe09 Mon Sep 17 00:00:00 2001 From: David Wells Date: Wed, 11 May 2016 20:37:13 -0400 Subject: [PATCH] Fix compilation in C++03 mode. C++03 does not support default template arguments in function templates. --- include/deal.II/grid/grid_tools.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/deal.II/grid/grid_tools.h b/include/deal.II/grid/grid_tools.h index db6adf0ef6..fd35b9952d 100644 --- a/include/deal.II/grid/grid_tools.h +++ b/include/deal.II/grid/grid_tools.h @@ -157,8 +157,12 @@ namespace GridTools * get the same result using cell-@>measure(), but this * function also works for cells that do not exist except that you make it * up by naming its vertices from the list. + * + * @note Since dim does not explicitly appear in the function + * signature, you must explicitly specify both dimensions when using this + * function. */ - template + template double cell_measure (const std::vector > &all_vertices, const unsigned int (&vertex_indices)[GeometryInfo::vertices_per_cell]); -- 2.39.5