From: Daniel Garcia-Sanchez Date: Fri, 23 Nov 2018 16:27:19 +0000 (+0100) Subject: Create a list with a more clear syntax X-Git-Tag: v9.1.0-rc1~453^2~6 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=86b97556cf763bb47bed1ce4ec3ac41243b158f3;p=dealii.git Create a list with a more clear syntax --- diff --git a/source/base/hdf5.cc b/source/base/hdf5.cc index 2804a926eb..a7f2c2763c 100644 --- a/source/base/hdf5.cc +++ b/source/base/hdf5.cc @@ -118,7 +118,8 @@ namespace HDF5 std::vector get_container_dimensions(const std::vector &data) { - return std::vector{data.size()}; + std::vector dimensions = {data.size()}; + return dimensions; } @@ -127,7 +128,8 @@ namespace HDF5 std::vector get_container_dimensions(const Vector &data) { - return std::vector{data.size()}; + std::vector dimensions = {data.size()}; + return dimensions; } @@ -136,7 +138,8 @@ namespace HDF5 std::vector get_container_dimensions(const FullMatrix &data) { - return std::vector{data.m(), data.n()}; + std::vector dimensions = {data.m(), data.n()}; + return dimensions; }