Skip to content

Commit

Permalink
whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
1uc committed Feb 9, 2024
1 parent e9222a9 commit aaf8eb8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 6 additions & 2 deletions include/highfive/bits/H5Converter_misc.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -344,13 +344,17 @@ struct Writer<T, typename enable_shallow_copy<T>::type>: public ShallowCopyBuffe
using super = ShallowCopyBuffer<T, true>;

public:
explicit Writer(const T& val, const std::vector<size_t>& /* dims */, const DataType& /* file_datatype */)
explicit Writer(const T& val,
const std::vector<size_t>& /* dims */,
const DataType& /* file_datatype */)
: super(val){};
};

template <typename T>
struct Writer<T, typename enable_deep_copy<T>::type>: public DeepCopyBuffer<T> {
explicit Writer(const T& val, const std::vector<size_t>& _dims, const DataType& /* file_datatype */)
explicit Writer(const T& val,
const std::vector<size_t>& _dims,
const DataType& /* file_datatype */)
: DeepCopyBuffer<T>(_dims) {
inspector<T>::serialize(val, _dims, this->begin());
}
Expand Down
4 changes: 3 additions & 1 deletion include/highfive/bits/H5Inspector_misc.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,9 @@ struct inspector<T*> {

/* it works because there is only T[][][] currently
we will fix it one day */
static void serialize(const type& /* val */, const std::vector<size_t>& /* dims*/, hdf5_type* /* m */) {
static void serialize(const type& /* val */,
const std::vector<size_t>& /* dims*/,
hdf5_type* /* m */) {
throw DataSpaceException("Not possible to serialize a T*");
}
};
Expand Down

0 comments on commit aaf8eb8

Please sign in to comment.