directly, define a symbol in the following way:
\code
namespace {
- senf::PacketRegistry<Tag>::RegistrationProxy<PacketType>
+ senf::PacketRegistry<Tag>::ScopedRegistrationProxy<PacketType>
registerPacketType (key, optional_priority);
}
\endcode
of \c registerPacketType ends.
*/
template <class PacketType>
- struct RegistrationProxy
+ struct ScopedRegistrationProxy
{
- RegistrationProxy(typename Tag::key_t key, int priority=0);
- ~RegistrationProxy();
+ ScopedRegistrationProxy(typename Tag::key_t key, int priority=0);
+ ~ScopedRegistrationProxy();
};
/** \brief Register new packet type
\tparam PacketType packet of which the key is requested
\returns key of the packet wrapped in a <a
- href="http://www.boost.org/libs/optional/doc/optional.html">boost::optional</a> or
+ href="http://www.boost.org/doc/libs/release/libs/optional/index.html">boost::optional</a> or
an unbound optional, if the key is not found.
*/
template <class PacketType>
\param packet The packet of which the key is requested
\returns key of the packet wrapped in a <a
- href="http://www.boost.org/libs/optional/doc/optional.html">boost::optional</a> or
+ href="http://www.boost.org/doc/libs/release/libs/optional/index.html">boost::optional</a> or
an unbound optional, if the key is not found.
*/
static typename boost::optional<typename Tag::key_t> key(Packet const & packet, NoThrow_t);
*/
# define SENF_PACKET_REGISTRY_REGISTER( registry, value, type ) \
namespace { \
- senf::PacketRegistry< registry >::RegistrationProxy< type > \
+ senf::PacketRegistry< registry >::ScopedRegistrationProxy< type > \
BOOST_PP_CAT(packetRegistration_, __LINE__) ( value ); \
}
*/
# define SENF_PACKET_REGISTRY_REGISTER_PRIORITY( registry, value, priority, type ) \
namespace { \
- senf::PacketRegistry< registry >::RegistrationProxy< type > \
+ senf::PacketRegistry< registry >::ScopedRegistrationProxy< type > \
BOOST_PP_CAT(packetRegistration_, __LINE__) ( value, priority ); \
}