]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Double-brace an initializer list, as required by some compilers. 6550/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Wed, 9 May 2018 08:59:11 +0000 (16:59 +0800)
committerWolfgang Bangerth <bangerth@colostate.edu>
Wed, 9 May 2018 09:29:37 +0000 (17:29 +0800)
source/base/polynomial_space.cc

index ddb9ef9835a2921b440d98d3506bac34cad99c05..b720ee0974d8008581e6c523dc5824d528c79497 100644 (file)
@@ -49,7 +49,7 @@ compute_index (const unsigned int i) const
 {
   Assert(i<index_map.size(),
          ExcIndexRange(i,0,index_map.size()));
-  return {index_map[i]};
+  return {{index_map[i]}};
 }
 
 
@@ -70,12 +70,14 @@ compute_index (const unsigned int i) const
   unsigned int k=0;
   for (unsigned int iy=0; iy<n_1d; ++iy)
     if (n < k+n_1d-iy)
-      return {n-k, iy};
+      {
+        return {{n-k, iy}};
+      }
     else
       k+=n_1d-iy;
 
   Assert (false, ExcInternalError());
-  return {numbers::invalid_unsigned_int, numbers::invalid_unsigned_int};
+  return {{numbers::invalid_unsigned_int, numbers::invalid_unsigned_int}};
 }
 
 
@@ -100,12 +102,14 @@ compute_index (const unsigned int i) const
   for (unsigned int iz=0; iz<n_1d; ++iz)
     for (unsigned int iy=0; iy<n_1d-iz; ++iy)
       if (n < k+n_1d-iy-iz)
-        return {n-k, iy, iz};
+        {
+          return {{n-k, iy, iz}};
+        }
       else
         k += n_1d-iy-iz;
 
   Assert (false, ExcInternalError());
-  return {numbers::invalid_unsigned_int, numbers::invalid_unsigned_int};
+  return {{numbers::invalid_unsigned_int, numbers::invalid_unsigned_int}};
 }
 
 

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.