]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix compilation in C++03 mode.
authorDavid Wells <wellsd2@rpi.edu>
Thu, 12 May 2016 00:37:13 +0000 (20:37 -0400)
committerDavid Wells <wellsd2@rpi.edu>
Thu, 12 May 2016 01:06:17 +0000 (21:06 -0400)
C++03 does not support default template arguments in function
templates.

include/deal.II/grid/grid_tools.h

index db6adf0ef6a7e38dce0517ce079d560056d1bf26..fd35b9952dfcffd1dcebfbe8d94b3f07a7f720a8 100644 (file)
@@ -157,8 +157,12 @@ namespace GridTools
    * get the same result using <code>cell-@>measure()</code>, 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 <code>dim</code> does not explicitly appear in the function
+   * signature, you must explicitly specify both dimensions when using this
+   * function.
    */
-  template <int dim, int spacedim=dim>
+  template <int dim, int spacedim>
   double cell_measure (const std::vector<Point<spacedim> > &all_vertices,
                        const unsigned int (&vertex_indices)[GeometryInfo<dim>::vertices_per_cell]);
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.