Skip to content

Commit 07ee4c6

Browse files
draccUltrawipf
authored andcommitted
Fix deprecation warning in ringbufferwrapper
1 parent e23abe8 commit 07ee4c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Firmware/FFBoard/Inc/ringbufferwrapper.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ T RingBufferWrapper::peek_as(bool* ok) noexcept
5757
T data;
5858
// Only POD types can be trivially copied from
5959
// the ring buffer.
60-
if (!std::is_pod<T>::value) {
60+
if (!std::is_standard_layout<T>::value && !std::is_trivial<T>::value) {
6161
*ok = false;
6262
return data;
6363
}

0 commit comments

Comments
 (0)