From: K. G. <kim...@gm...> - 2008-09-15 07:23:27
|
Hello all, Pardon the noise... This project caught my interest partly because it uses modern C++ techniques, and I'm not practically familiar with them. I've read quite a bit about the techniques, so I think I understand them at a theoretical level, but I don't have an intuitive sense of what to apply when. I've noticed the cpp-netlib code base uses a couple of idioms that I don't really get: 1) tags -- I (think I) understand tag dispatching, but I don't see a clear-cut reason to use a tag with the basic_client, for example...? Is it just something to group traits around? I think I would have naively built a message_traits class, that exposed the respective typedefs, so I don't really see the benefit of the scattered traits structs. Except maybe for the fact that they _are_ scattered, so they can be specialized on a case-by-case basis? 2) directives -- I don't see what benefit these added over member functions on the message... Help? Thanks for any pointers, - Kim |