4 ms·
Linking boost bind is unfair. I find it ironic that you dislike C++11 but the example you link to is only bloated due to the lack of the very same features tha
by Negitivefrags 14y ago
Linking boost bind is unfair.
I find it ironic that you dislike C++11 but the example you link to is only bloated due to the lack of the very same features that C++11 adds (in this case variadic templates would make that file 10 times smaller).
And it only really exists in the first place to paper over the lack of lambda functions, which C++11 also added.
Modern C++11 code is much easier to read and understand. The majority of added features are all about promoting that very ideal.
- general_failure 14y agoOK, here's a variadic template example for you :) http://qt.gitorious.org/qt/qtbase/blobs/59fb0328392a5fc47e3a013403fe192c215d8aa7/src/corelib/kernel/qobject_impl.h http://qt.gitorious.org/qt/qtbase/blobs/59fb0328392a5fc47e3a... (search for the #else bits)
- larve 14y agoto be honest I found that to be quite readable.