X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FPackets%2FPacketImpl.ct;h=feb564d131fd4a1840623f260b4af5d9734a5d4a;hb=78a6e233083efa63a9cd0684a92abc64202a9ee7;hp=7dc7cb97f079fc463beeec99789bb9145377269a;hpb=943a6b0973f66bc699c6e7b404da256145e93acf;p=senf.git diff --git a/senf/Packets/PacketImpl.ct b/senf/Packets/PacketImpl.ct index 7dc7cb9..feb564d 100644 --- a/senf/Packets/PacketImpl.ct +++ b/senf/Packets/PacketImpl.ct @@ -35,20 +35,20 @@ senf::detail::AnnotationRegistry::RegistrationProxy senf::detail::AnnotationRegistry::Entry::proxy_; template -senf::detail::AnnotationRegistry::key_t +senf::detail::AnnotationRegistry::key_type senf::detail::AnnotationRegistry::Entry::key_; template prefix_ void * senf::detail::PacketImpl::complexAnnotation() { - AnnotationRegistry::key_t key (AnnotationRegistry::lookup()); + AnnotationRegistry::key_type key (AnnotationRegistry::lookup()); void * rv (complexAnnotation(key)); -#ifndef SENF_PACKET_NO_COMPLEX_ANNOTATIONS if (! rv) { + while (complexAnnotations_.size() < ComplexAnnotations::size_type(-key)) + complexAnnotations_.push_back(0); complexAnnotations_.replace(-key-1, new AnnotationRegistry::Entry()); rv = complexAnnotations_[-key-1].get(); } -#endif return rv; }