On 12/05/2011 03:27 PM, Leandro Santiago wrote: > 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. > Hi,
it will for sure take quite some time, until I will break compatibility with older compilers. Maybe I will some day add some additions with configure checks and #ifdefs to support some newer features, but I don't want to go with C++11 too soon. In my daily work we use also IBM AIX with a older compiler and there are currently no plans to update the system, I would be one of the first victims. I've seen, that you use C++11 and that is great. You have shown, that it works fine. Tommi ------------------------------------------------------------------------------ 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
