mirror of
https://git.gfz-potsdam.de/naaice/poet.git
synced 2025-12-16 12:54:50 +01:00
20 lines
403 B
C++
20 lines
403 B
C++
#pragma once
|
|
#include <H5public.h>
|
|
|
|
namespace HighFive {
|
|
namespace detail {
|
|
inline void h5_free_memory(void* mem) {
|
|
if (H5free_memory(mem) < 0) {
|
|
throw DataTypeException("Could not free memory allocated by HDF5");
|
|
}
|
|
}
|
|
|
|
namespace nothrow {
|
|
inline herr_t h5_free_memory(void* mem) {
|
|
return H5free_memory(mem);
|
|
}
|
|
} // namespace nothrow
|
|
|
|
} // namespace detail
|
|
} // namespace HighFive
|