From ec93b41ed29a27c037640bd8276175800f9e317a Mon Sep 17 00:00:00 2001 From: StupidBhh Date: Tue, 31 Mar 2026 09:42:21 +0800 Subject: [PATCH] feat: add explicit constructor for DataType class --- include/highfive/H5DataType.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/highfive/H5DataType.hpp b/include/highfive/H5DataType.hpp index 35bff7f8..afa7c17c 100644 --- a/include/highfive/H5DataType.hpp +++ b/include/highfive/H5DataType.hpp @@ -61,6 +61,11 @@ class IntegerType; /// class DataType: public Object { public: + explicit DataType(hid_t hid) noexcept : + Object(hid) + { + } + bool operator==(const DataType& other) const; bool operator!=(const DataType& other) const;