X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Packets%2FPacket.hh;h=bb2ac904cf3bd0c0e24d422c74cbb71cbb4d8422;hb=3593676775cfadb0094eb4f472c6ced0763e0068;hp=124e8bd73a638a8417a17094373dc5c7008bc30c;hpb=226247520d34c4ec0539bfebf485d7cd46adcd70;p=senf.git diff --git a/Packets/Packet.hh b/Packets/Packet.hh index 124e8bd..bb2ac90 100644 --- a/Packets/Packet.hh +++ b/Packets/Packet.hh @@ -339,7 +339,8 @@ namespace senf { If an annotation is \e not a POD type (more specifically, if it's constructor or destructor is not - trivial), the \a Annotation type \e must inherit from + trivial including base classes and members), the \a + Annotation type \e must inherit from senf::ComplexAnnotation. Failing to follow this rule will result in undefined behavior and will probably lead to a program crash. @@ -349,6 +350,7 @@ namespace senf { std::string value; }; \endcode + (This type is not POD since \c std::string is not POD) \implementation The annotation system is implemented quite efficiently since annotations are stored