File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -6,9 +6,8 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
6
6
7
7
add_subdirectory (include )
8
8
9
- find_package (HDF5 REQUIRED COMPONENTS CXX )
10
- target_link_libraries (binsparse INTERFACE ${HDF5_CXX_LIBRARIES} )
11
- target_include_directories (binsparse INTERFACE . ${HDF5_INCLUDE_DIRS} )
9
+ find_package (HDF5 REQUIRED COMPONENTS C CXX )
10
+ target_link_libraries (binsparse INTERFACE ${HDF5_C_LIBRARIES} hdf5::hdf5_cpp )
12
11
13
12
if (CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME )
14
13
# Dependencies needed only for examples/test
Original file line number Diff line number Diff line change 2
2
3
3
#include < H5Cpp.h>
4
4
#include < cassert>
5
+ #include < cstdint>
5
6
#include < ranges>
6
7
#include < type_traits>
7
8
#include < vector>
Original file line number Diff line number Diff line change @@ -45,8 +45,9 @@ struct type_info<uint64_t> {
45
45
}
46
46
};
47
47
48
- template <>
49
- struct type_info <std::size_t > {
48
+ template <typename T>
49
+ requires std::is_same_v<T, std::size_t >
50
+ struct type_info <T> {
50
51
static constexpr auto label () noexcept {
51
52
return " uint64" ;
52
53
}
You can’t perform that action at this time.
0 commit comments