3 ms·
> And, in my entire career, I have never had this problem. You never used types such as std:: function?
by jcelerier 6y ago
> And, in my entire career, I have never had this problem.
You never used types such as std:: function?
- AnimalMuppet 6y agoUm... I think I used it once, in a bit of throwaway code for my own entertainment (binding a parameter to a two-parameter function so that I could use it in Newton-Raphson). I have never used it professionally, and never had the kind of situation where I needed it.
- jcelerier 6y agoYour experience is pretty uncommon. Grepping for it in my home's .h/.hpp yields roughly seven thousand matches
- AnimalMuppet 6y agoOur experience differs, yes. Do you have any basis for saying that yours is more common than mine?
- jcelerier 6y agonever seen it not being used (or its ancestor boost::function) when doing consulting, a large amount of large projects used by other projects use it (boost, qt, llvm, eigen, opencv, the VST API, KDE ...). In particular most GUI toolkits have at least an equivalent as it's the only way to store callbacks of different types with an associated arbitrary state (e.g. lambdas)