From: Wolfgang Bangerth Date: Tue, 4 Feb 2014 21:44:57 +0000 (+0000) Subject: Pass array by reference instead of by value. This should also help MS VC++ which... X-Git-Tag: v8.2.0-rc1~883 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=93b0b05d1c5579e42ecbd783e0b955776cbbdec1;p=dealii.git Pass array by reference instead of by value. This should also help MS VC++ which doesn't like the situation as is. git-svn-id: https://svn.dealii.org/trunk@32406 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/include/deal.II/grid/grid_generator.h b/deal.II/include/deal.II/grid/grid_generator.h index 56194984fe..0c708ab4ea 100644 --- a/deal.II/include/deal.II/grid/grid_generator.h +++ b/deal.II/include/deal.II/grid/grid_generator.h @@ -1,7 +1,7 @@ // --------------------------------------------------------------------- // $Id$ // -// Copyright (C) 1999 - 2013 by the deal.II authors +// Copyright (C) 1999 - 2014 by the deal.II authors // // This file is part of the deal.II library. // @@ -205,7 +205,7 @@ namespace GridGenerator template void parallelogram (Triangulation &tria, - const Point corners[dim], + const Point (&corners)[dim], const bool colorize=false); /** @@ -576,7 +576,6 @@ namespace GridGenerator * @param r The inner radius of the * torus. */ - void torus (Triangulation<2,3> &tria, const double R, const double r); diff --git a/deal.II/source/grid/grid_generator.cc b/deal.II/source/grid/grid_generator.cc index 0fc9d742a3..e71587880f 100644 --- a/deal.II/source/grid/grid_generator.cc +++ b/deal.II/source/grid/grid_generator.cc @@ -633,7 +633,7 @@ namespace GridGenerator template<> void parallelogram (Triangulation<3> &tria, - const Point<3> corners[3], + const Point<3> (&corners)[3], const bool colorize) { Assert (false, ExcNotImplemented()); @@ -642,7 +642,7 @@ namespace GridGenerator template<> void parallelogram (Triangulation<1> &tria, - const Point<1> corners[1], + const Point<1> (&corners)[1], const bool colorize) { Assert (false, ExcNotImplemented()); @@ -652,7 +652,7 @@ namespace GridGenerator template<> void parallelogram (Triangulation<2> &tria, - const Point<2> corners[2], + const Point<2> (&corners)[2], const bool colorize) { std::vector > vertices (GeometryInfo<2>::vertices_per_cell);