Replace std::is_pod_v with std::is_standard_layout_v (#2159)

The former is deprecated in C++20.
This commit is contained in:
Tyler Veness
2019-12-07 13:34:52 -08:00
committed by Peter Johnson
parent 67d2fed685
commit 5c6b8a0f45
2 changed files with 7 additions and 2 deletions

View File

@@ -11,6 +11,7 @@
#include <cstddef>
#include <cstring>
#include <memory>
#include <type_traits>
#include "AnalogInternal.h"
#include "DigitalInternal.h"
@@ -28,7 +29,8 @@
using namespace hal;
static_assert(std::is_pod_v<HAL_DMASample>, "DMA Sample must be POD");
static_assert(std::is_standard_layout_v<HAL_DMASample>,
"HAL_DMASample must have standard layout");
namespace {