mirror of
https://github.com/savoirfairelinux/opendht.git
synced 2026-11-08 04:21:51 +00:00
This patch fixes Serialized derived classes, using CRTP idom,
by fixing the "constructor forwarding problem".
A derived class has no to use dht::Value::Serialized<Derived, Base>
as super class, by replacing itself in "Derived" and use the
right "Base" class. Ex:
class MyImMessage : public dht::Value::Serializable<MyImMessage, dht::ImMessage>
{
...
}
No more needed to overload getType and define TYPE static.