]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Create a list with a more clear syntax
authorDaniel Garcia-Sanchez <daniel.garcia-sanchez@insp.upmc.fr>
Fri, 23 Nov 2018 16:27:19 +0000 (17:27 +0100)
committerDaniel Garcia-Sanchez <daniel.garcia-sanchez@insp.upmc.fr>
Wed, 9 Jan 2019 18:29:20 +0000 (19:29 +0100)
source/base/hdf5.cc

index 2804a926eb113458ce09f9e6e9205560a4911b6a..a7f2c2763c1e67e37f611c9ad755543b98034289 100644 (file)
@@ -118,7 +118,8 @@ namespace HDF5
     std::vector<hsize_t>
     get_container_dimensions(const std::vector<number> &data)
     {
-      return std::vector<hsize_t>{data.size()};
+      std::vector<hsize_t> dimensions = {data.size()};
+      return dimensions;
     }
 
 
@@ -127,7 +128,8 @@ namespace HDF5
     std::vector<hsize_t>
     get_container_dimensions(const Vector<number> &data)
     {
-      return std::vector<hsize_t>{data.size()};
+      std::vector<hsize_t> dimensions = {data.size()};
+      return dimensions;
     }
 
 
@@ -136,7 +138,8 @@ namespace HDF5
     std::vector<hsize_t>
     get_container_dimensions(const FullMatrix<number> &data)
     {
-      return std::vector<hsize_t>{data.m(), data.n()};
+      std::vector<hsize_t> dimensions = {data.m(), data.n()};
+      return dimensions;
     }
 
 

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.