From: Wolfgang Bangerth Date: Wed, 3 Dec 2014 13:09:35 +0000 (-0600) Subject: Patch by Lukas Korous: Work around a compiler problem in Microsoft Visual Studio... X-Git-Tag: v8.2.0-rc1~34^2~4 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=590aaaad5e446536638a3b5a4ca943a574c49fc9;p=dealii.git Patch by Lukas Korous: Work around a compiler problem in Microsoft Visual Studio by disabling a safety check (for just this compiler) that should never trigger. --- diff --git a/source/grid/tria.cc b/source/grid/tria.cc index 4dc52e2dc7..107b65eab2 100644 --- a/source/grid/tria.cc +++ b/source/grid/tria.cc @@ -1911,7 +1911,13 @@ namespace internal }; - + /** + * Create a triangulation from + * given data. This function does + * this work for 3-dimensional + * triangulations independently + * of the actual space dimension. + */ template static void @@ -1935,10 +1941,13 @@ namespace internal // and reorder_cells function of // GridReordering before creating // the triangulation - for (unsigned int cell_no=0; cell_no= 0, - ExcGridHasInvalidCell(cell_no)); +#ifndef _MSC_VER + //TODO: The following code does not compile with MSVC. Find a way around it + for (unsigned int cell_no = 0; cell_no= 0, + ExcGridHasInvalidCell(cell_no)); +#endif /////////////////////////////////////// // first set up some collections of data