mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-06-04 16:53:48 -04:00
nca-pr: update for c++20
This commit is contained in:
parent
311d2678c7
commit
53a47e07fd
14 changed files with 36 additions and 36 deletions
|
@ -40,7 +40,7 @@ namespace ams::fssystem {
|
|||
void Format(s32 entry_count);
|
||||
Result Verify() const;
|
||||
};
|
||||
static_assert(std::is_pod<Header>::value);
|
||||
static_assert(util::is_pod<Header>::value);
|
||||
static_assert(sizeof(Header) == 0x10);
|
||||
|
||||
struct NodeHeader {
|
||||
|
@ -50,7 +50,7 @@ namespace ams::fssystem {
|
|||
|
||||
Result Verify(s32 node_index, size_t node_size, size_t entry_size) const;
|
||||
};
|
||||
static_assert(std::is_pod<NodeHeader>::value);
|
||||
static_assert(util::is_pod<NodeHeader>::value);
|
||||
static_assert(sizeof(NodeHeader) == 0x10);
|
||||
|
||||
class ContinuousReadingInfo {
|
||||
|
@ -140,7 +140,7 @@ namespace ams::fssystem {
|
|||
|
||||
template<typename T>
|
||||
T *Get() const {
|
||||
static_assert(std::is_pod<T>::value);
|
||||
static_assert(util::is_pod<T>::value);
|
||||
static_assert(sizeof(T) == sizeof(NodeHeader));
|
||||
return reinterpret_cast<T *>(this->header);
|
||||
}
|
||||
|
@ -278,9 +278,9 @@ namespace ams::fssystem {
|
|||
s64 end;
|
||||
s64 start;
|
||||
} info;
|
||||
static_assert(std::is_pod<Info>::value);
|
||||
static_assert(util::is_pod<Info>::value);
|
||||
};
|
||||
static_assert(std::is_pod<EntrySetHeader>::value);
|
||||
static_assert(util::is_pod<EntrySetHeader>::value);
|
||||
private:
|
||||
const BucketTree *tree;
|
||||
void *entry;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue