How can I prevent a C++ lambda from being inlined?

125 views Asked by At

I'm profiling some code that involves lambdas, and the inlining of the lambdas is making it difficult for me to understand what's going on. I'd like to prevent some of the lambdas from being inlined, whether through some function that takes a lambda and returns a non-inlinable version of it, or something I can add to a lambda declaration, or whatever. Any ideas?

0

There are 0 answers