This repository was archived by the owner on Feb 26, 2025. It is now read-only.
This repository was archived by the owner on Feb 26, 2025. It is now read-only.
Open
Description
HighFive/include/highfive/H5File.hpp
Lines 28 to 45 in 7638232
and then here:
HighFive/include/highfive/H5File.hpp
Lines 54 to 56 in 7638232
isn't particularly type safe. One option is:
class File {
enum class FileMode {
ReadOnly,
};
static constexpr ReadOnly = FileMode::ReadOnly;
};
and a lot of boiler plate to allow it to work properly as a bitset. Or use:
using FileMode = std::bitset<?>;
class File {
static constexpr FileMode ReadOnly = {...};
};