util: add pointer utils, use to constrain fs pointers
This commit is contained in:
@@ -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>;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user