From 9fdf57f257635741e243d41eaaf4bb65734a7c47 Mon Sep 17 00:00:00 2001 From: Daniel Garcia-Sanchez Date: Thu, 22 Nov 2018 18:50:16 +0100 Subject: [PATCH] Specify the argument in the lambda funcions Generic lambdas is a C++14 feature --- source/base/hdf5.cc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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; -- 2.39.5