diff --git a/LibCarla/source/carla/sensor/s11n/SensorHeaderSerializer.cpp b/LibCarla/source/carla/sensor/s11n/SensorHeaderSerializer.cpp index 264d12bfa..dd79a9399 100644 --- a/LibCarla/source/carla/sensor/s11n/SensorHeaderSerializer.cpp +++ b/LibCarla/source/carla/sensor/s11n/SensorHeaderSerializer.cpp @@ -12,6 +12,10 @@ namespace carla { namespace sensor { namespace s11n { + static_assert( + SensorHeaderSerializer::header_offset == 2u * 8u + 6u * 4u, + "Header size missmatch"); + static Buffer PopBufferFromPool() { static auto pool = std::make_shared(); return pool->Pop();