X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;f=include%2Fanna%2Fdiameter%2Fcodec%2FMessage.hpp;h=dd0b13ab615fe0911d56dde24ca02db986cec582;hb=61f81319bb14f08094488e8a2478ff4e0d6d661a;hp=a040aa1fd2f3dd0fb0fc393d6d7d5f7eb16fce90;hpb=ceba20e0efab1bc4e564c18fe05a9a0047983653;p=anna.git diff --git a/include/anna/diameter/codec/Message.hpp b/include/anna/diameter/codec/Message.hpp index a040aa1..dd0b13a 100644 --- a/include/anna/diameter/codec/Message.hpp +++ b/include/anna/diameter/codec/Message.hpp @@ -223,7 +223,8 @@ public: /** * Destructor */ - ~Message(); + virtual ~Message(); + // Virtual destructors are useful when you can delete an instance of a derived class through a pointer to base class: // This destructor is not virtual, then a pointer to base class (even pointing to a children one) will invoke this destructor, not the derived one. // My current solution: virtualizing method 'clear' @@ -753,7 +754,7 @@ public: during hexadecimal read. Normally only printable 'data' fields are used for matching issues. For example, imagine a 'pattern.xml' file like: - + @@ -796,3 +797,4 @@ public: #endif +