mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
Replace std::is_pod_v with std::is_standard_layout_v (#2159)
The former is deprecated in C++20.
This commit is contained in:
committed by
Peter Johnson
parent
67d2fed685
commit
5c6b8a0f45
@@ -7,6 +7,8 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <type_traits>
|
||||
|
||||
#include <hal/AnalogInput.h>
|
||||
#include <hal/DMA.h>
|
||||
#include <units/units.h>
|
||||
@@ -104,5 +106,6 @@ class DMASample : public HAL_DMASample {
|
||||
}
|
||||
};
|
||||
|
||||
static_assert(std::is_pod_v<frc::DMASample>, "DMA Sample MUST Be POD");
|
||||
static_assert(std::is_standard_layout_v<frc::DMASample>,
|
||||
"frc::DMASample must have standard layout");
|
||||
} // namespace frc
|
||||
|
||||
Reference in New Issue
Block a user