From: David Wells Date: Thu, 12 May 2016 00:37:13 +0000 (-0400) Subject: Fix compilation in C++03 mode. X-Git-Tag: v8.5.0-rc1~1042^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=38ed17e4b842e8609fc2651ea2590b850e91fe09;p=dealii.git Fix compilation in C++03 mode. C++03 does not support default template arguments in function templates. --- 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]);