Skip to content
Snippets Groups Projects
Unverified Commit b8b9f41b authored by bunnei's avatar bunnei Committed by GitHub
Browse files

Merge pull request #1003 from lioncash/var

video_core: Use variable template variants of type_traits interfaces where applicable
parents dfcde52f b8c43b60
No related branches found
No related tags found
No related merge requests found
...@@ -30,8 +30,7 @@ union CommandHeader { ...@@ -30,8 +30,7 @@ union CommandHeader {
BitField<29, 3, SubmissionMode> mode; BitField<29, 3, SubmissionMode> mode;
}; };
static_assert(std::is_standard_layout<CommandHeader>::value == true, static_assert(std::is_standard_layout_v<CommandHeader>, "CommandHeader is not standard layout");
"CommandHeader does not use standard layout");
static_assert(sizeof(CommandHeader) == sizeof(u32), "CommandHeader has incorrect size!"); static_assert(sizeof(CommandHeader) == sizeof(u32), "CommandHeader has incorrect size!");
} // namespace Tegra } // namespace Tegra
...@@ -477,8 +477,7 @@ union Instruction { ...@@ -477,8 +477,7 @@ union Instruction {
u64 value; u64 value;
}; };
static_assert(sizeof(Instruction) == 0x8, "Incorrect structure size"); static_assert(sizeof(Instruction) == 0x8, "Incorrect structure size");
static_assert(std::is_standard_layout<Instruction>::value, static_assert(std::is_standard_layout_v<Instruction>, "Instruction is not standard layout");
"Structure does not have standard layout");
class OpCode { class OpCode {
public: public:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment