mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-06-05 01:03:43 -04:00
util: add pointer utils, use to constrain fs pointers
This commit is contained in:
parent
141ae5c7ab
commit
dfa475a769
8 changed files with 75 additions and 6 deletions
|
@ -20,7 +20,7 @@ namespace ams::fs {
|
|||
|
||||
namespace fsa {
|
||||
|
||||
class IFile;
|
||||
class IFileSystem;
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -110,4 +110,7 @@ namespace ams::fs {
|
|||
}
|
||||
};
|
||||
|
||||
template<typename T>
|
||||
concept PointerToStorage = ::ams::util::RawOrSmartPointerTo<T, ::ams::fs::IStorage>;
|
||||
|
||||
}
|
||||
|
|
|
@ -181,4 +181,7 @@ namespace ams::fs::fsa {
|
|||
}
|
||||
};
|
||||
|
||||
template<typename T>
|
||||
concept PointerToFileSystem = ::ams::util::RawOrSmartPointerTo<T, ::ams::fs::fsa::IFileSystem>;
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue