Generics without templates ?

Hi Guys,

I was wondering why the concept of generics has been implemented via #define hacking in some of the code (the parts where the connectionPDict and FragReassemblesPdict are defined in session.h). Are they any advantages to doing this in the stead of templates? It is very tedious looking at this in the code, especially to someone who comes from another language. If there aren’t any advantages shall I refractor it out of the code for the sake of future newbie’s like me?

Regards

Hassan

I was wondering why the concept of generics has been implemented via
#define hacking in some of the code

Because those parts are very old.

If there aren't any advantages shall I refractor it
out of the code for the sake of future newbie's like me?

I don't view this as a priority. That code is now very stable and the
development team knows how to work with it. It's also not code that most
newbies need to try to understand (though I can appreciate your stress at
doing so).

    Vern