X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Packets%2FPacketRegistry.hh;h=2311f3eba1c2434ee36055d4e7621fb270b0ffcc;hb=c45c112ae88196ea8da9c5a9efb0e167196744d2;hp=6164133702e7cecfb8448ac5a957ac7548756187;hpb=9284858f98eb950ed11b0c00b08c855cc9c7269d;p=senf.git diff --git a/Packets/PacketRegistry.hh b/Packets/PacketRegistry.hh index 6164133..2311f3e 100644 --- a/Packets/PacketRegistry.hh +++ b/Packets/PacketRegistry.hh @@ -152,7 +152,7 @@ namespace senf { \returns key of the packet \throws PacketTypeNotRegistered if the packet type is not found in the registry. */ - static typename Tag::key_t key(Packet packet); + static typename Tag::key_t key(Packet const & packet); /** \brief Find key of a packet @@ -163,7 +163,7 @@ namespace senf { href="http://www.boost.org/libs/optional/doc/optional.html">boost::optional or an unbound optional, if the key is not found. */ - static typename boost::optional key(Packet packet, NoThrow_t); + static typename boost::optional key(Packet const & packet, NoThrow_t); /** \brief Lookup a packet by it's key