aboutsummaryrefslogtreecommitdiff
path: root/include/cru/base/io/Base.h
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2025-12-01 21:09:28 +0800
committerYuqian Yang <crupest@crupest.life>2025-12-01 21:16:51 +0800
commitd54732324827bcfdc75e684b6636c53c109757c4 (patch)
tree1d82f4963b2e934769a9ab143d2c9c4b3e1990cb /include/cru/base/io/Base.h
parent2fb9c12f9277a2c601cc2820884f9c5c1fd4e5c5 (diff)
downloadcru-d54732324827bcfdc75e684b6636c53c109757c4.tar.gz
cru-d54732324827bcfdc75e684b6636c53c109757c4.tar.bz2
cru-d54732324827bcfdc75e684b6636c53c109757c4.zip
Clean up Bitmask.
Diffstat (limited to 'include/cru/base/io/Base.h')
-rw-r--r--include/cru/base/io/Base.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/include/cru/base/io/Base.h b/include/cru/base/io/Base.h
index d5e2abff..85ea5343 100644
--- a/include/cru/base/io/Base.h
+++ b/include/cru/base/io/Base.h
@@ -9,12 +9,7 @@ class CRU_BASE_API FileNotExistException : public Exception {
using Exception::Exception;
};
-namespace details {
-struct OpenFileFlagTag {};
-} // namespace details
-using OpenFileFlag = Bitmask<details::OpenFileFlagTag>;
-
-struct OpenFileFlags {
+CRU_DEFINE_BITMASK(OpenFileFlag) {
/**
* \brief for reading
* If the file does not exist, FileNotExistException should be thrown.