Hello. Does the tnt author intend to use c++0x features in tntnet family?
I'm looking at the code and I see that in some places it's possible to use c++0x new features to improve the librart (but it can broke the compatibility with compilers which don't implement these features :-() For example, in the xmlrpc::Service class, lots of templates with different number of parameters (all these have the same code). I think it'd be a good idea to use variadic templates to improve these code. It also happens in callable.tpp Also in xmlrpc::Service, it's passed to the registerFunctions templates method a pointer to a function, which represents the callback. The new stl, which is compatible with c++0x has a class std::function which propuses to represent a function. But it can also "match" a lambda function or a functor. It's really useful. With std::function of use (fn *)(int) you can use std::function<fn(int)>. It's really simple, but I've never checked if it affects the performance. Thanks in advance. -- Atenciosamente, Leandro ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d _______________________________________________ Tntnet-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tntnet-general
