We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01e31b7 commit 87d5152Copy full SHA for 87d5152
tensorflow/lite/core/api/flatbuffer_conversions.h
@@ -42,9 +42,8 @@ class BuiltinDataAllocator {
42
// deallocation.
43
template <typename T>
44
T* AllocatePOD() {
45
- // TODO(b/154346074): Change this to is_trivially_destructible when all
46
- // platform targets support that properly.
47
- static_assert(std::is_pod<T>::value, "Builtin data structure must be POD.");
+ static_assert(std::is_trivially_destructible<T>::value,
+ "Builtin data structure must be POD.");
48
void* allocated_memory = this->Allocate(sizeof(T), alignof(T));
49
return new (allocated_memory) T();
50
}
0 commit comments