google / google/fuzztest

centipede::BlobSequence uses deprecated is_pod

Open
#1,613 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
1.1k
Forks
137
Avg merge
3d 6h
Merged PRs (30d)
22

Description

https://github.com/google/fuzztest/blob/main/centipede/shared_memory_blob_sequence.h#L72

```
// Writes `tag`/`value` as a blob. `T` should be a POD.
// Returns true on success.
template
bool Write(Blob::SizeAndTagT tag, T value) {
static_assert(std::is_pod_v, "T must be a POD");
return Write(
{tag, sizeof(value), reinterpret_cast(&value)});
}
```

is_pod is deprecated in C++20 and was marked as such in libc++ in https://github.com/llvm/llvm-project/pull/129471

This probably wants to use std::is_standard_layout instead.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.