From ac3aa64d336b16150e63078a7a7e4de1f1a7a3e5 Mon Sep 17 00:00:00 2001 From: rdb Date: Tue, 1 Mar 2022 15:13:30 +0100 Subject: [PATCH] express: Add docstring to DatagramIterator about Datagram lifetime Related to #1262 [skip ci] --- panda/src/express/datagramIterator.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/panda/src/express/datagramIterator.h b/panda/src/express/datagramIterator.h index 867c7de58c..5137022c5f 100644 --- a/panda/src/express/datagramIterator.h +++ b/panda/src/express/datagramIterator.h @@ -23,6 +23,9 @@ * A class to retrieve the individual data elements previously stored in a * Datagram. Elements may be retrieved one at a time; it is up to the caller * to know the correct type and order of each element. + * + * Note that it is the responsibility of the caller to ensure that the datagram + * object is not destructed while this DatagramIterator is in use. */ class EXPCL_PANDA_EXPRESS DatagramIterator { public: