Add TODO about changing is_pod to is_trivially_destructible.
PiperOrigin-RevId: 307427936
Change-Id: If4cb611047aa6fd0302466ffe5a3ba0ab2f8ed63
diff --git a/tensorflow/lite/core/api/flatbuffer_conversions.h b/tensorflow/lite/core/api/flatbuffer_conversions.h
index df1ada8..070705f 100644
--- a/tensorflow/lite/core/api/flatbuffer_conversions.h
+++ b/tensorflow/lite/core/api/flatbuffer_conversions.h
@@ -38,6 +38,8 @@
// deallocation.
template <typename T>
T* AllocatePOD() {
+ // TODO(b/154346074): Change this to is_trivially_destructible when all
+ // platform targets support that properly.
static_assert(std::is_pod<T>::value, "Builtin data structure must be POD.");
void* allocated_memory = this->Allocate(sizeof(T));
return new (allocated_memory) T;