From: Daniel Garcia-Sanchez Date: Thu, 22 Nov 2018 17:50:16 +0000 (+0100) Subject: Specify the argument in the lambda funcions X-Git-Tag: v9.1.0-rc1~453^2~7 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9fdf57f257635741e243d41eaaf4bb65734a7c47;p=dealii.git Specify the argument in the lambda funcions Generic lambdas is a C++14 feature --- diff --git a/source/base/hdf5.cc b/source/base/hdf5.cc index 8885254d33..2804a926eb 100644 --- a/source/base/hdf5.cc +++ b/source/base/hdf5.cc @@ -67,7 +67,7 @@ namespace HDF5 } else if (std::is_same>::value) { - t_type = std::shared_ptr(new hid_t, [](auto pointer) { + t_type = std::shared_ptr(new hid_t, [](hid_t *pointer) { // Relase the HDF5 resource H5Tclose(*pointer); delete pointer; @@ -83,7 +83,7 @@ namespace HDF5 } else if (std::is_same>::value) { - t_type = std::shared_ptr(new hid_t, [](auto pointer) { + t_type = std::shared_ptr(new hid_t, [](hid_t *pointer) { // Relase the HDF5 resource H5Tclose(*pointer); delete pointer; @@ -530,12 +530,12 @@ namespace HDF5 , local_no_collective_cause(H5D_MPIO_SET_INDEPENDENT) , global_no_collective_cause(H5D_MPIO_SET_INDEPENDENT) { - hdf5_reference = std::shared_ptr(new hid_t, [](auto pointer) { + hdf5_reference = std::shared_ptr(new hid_t, [](hid_t *pointer) { // Relase the HDF5 resource H5Dclose(*pointer); delete pointer; }); - dataspace = std::shared_ptr(new hid_t, [](auto pointer) { + dataspace = std::shared_ptr(new hid_t, [](hid_t *pointer) { // Relase the HDF5 resource H5Sclose(*pointer); delete pointer; @@ -582,12 +582,12 @@ namespace HDF5 , local_no_collective_cause(H5D_MPIO_SET_INDEPENDENT) , global_no_collective_cause(H5D_MPIO_SET_INDEPENDENT) { - hdf5_reference = std::shared_ptr(new hid_t, [](auto pointer) { + hdf5_reference = std::shared_ptr(new hid_t, [](hid_t *pointer) { // Relase the HDF5 resource H5Dclose(*pointer); delete pointer; }); - dataspace = std::shared_ptr(new hid_t, [](auto pointer) { + dataspace = std::shared_ptr(new hid_t, [](hid_t *pointer) { // Relase the HDF5 resource H5Sclose(*pointer); delete pointer; @@ -1386,7 +1386,7 @@ namespace HDF5 const GroupAccessMode mode) : HDF5Object(name, mpi) { - hdf5_reference = std::shared_ptr(new hid_t, [](auto pointer) { + hdf5_reference = std::shared_ptr(new hid_t, [](hid_t *pointer) { // Relase the HDF5 resource H5Gclose(*pointer); delete pointer; @@ -1487,7 +1487,7 @@ namespace HDF5 const MPI_Comm mpi_communicator) : Group(name, mpi) { - hdf5_reference = std::shared_ptr(new hid_t, [](auto pointer) { + hdf5_reference = std::shared_ptr(new hid_t, [](hid_t *pointer) { // Relase the HDF5 resource H5Fclose(*pointer); delete pointer;