From: Wolfgang Bangerth Date: Tue, 3 Aug 2004 02:22:17 +0000 (+0000) Subject: Work around a trivial problem with the hp compiler. X-Git-Tag: v8.0.0~14928 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2fecb37f02cd77baf0cba61a4e79d127c47b9c7c;p=dealii.git Work around a trivial problem with the hp compiler. git-svn-id: https://svn.dealii.org/trunk@9540 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/source/fe/fe_q_2d.cc b/deal.II/deal.II/source/fe/fe_q_2d.cc index 83cdec5544..3ee7e0bdf9 100644 --- a/deal.II/deal.II/source/fe/fe_q_2d.cc +++ b/deal.II/deal.II/source/fe/fe_q_2d.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2001, 2002, 2003 by the deal.II authors +// Copyright (C) 2001, 2002, 2003, 2004 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -18,12 +18,14 @@ #include -// constraint matrices in 2d are now implemented by computing them on -// the fly for all polynomial degrees - +// constraint matrices in 2d are now implemented by computing them on the fly +// for all polynomial degrees. the array is thus empty. unfortunately, some +// compilers dislike empty initializers for arrays of unknown size +// (particularly the hp compiler), so we simply initialize a single element +// with a null pointer template <> const double * const -FE_Q<2>::Matrices::constraint_matrices[] = {}; +FE_Q<2>::Matrices::constraint_matrices[] = { 0 }; template <>