You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a specific example where there's a problem?
Nope, not a specific use case at all, moreover - I'm not going to capture by reference via this library in a real code :)
The situation is that I am currently collecting ideas for improving the Clang Tidy static analysis tool.
Recently I've submitted nice Feature Request(llvm/llvm-project#120863) to seek and hint UB that's created due to incorrect C++11 lambda usage.
Then all I want to know is whether it is possible to reproduce the same UB by incorrectly using Boost Lambda 2 instead of C++11 lambda.
std::ref should work.
Hmmm, sounds interesting. I will try std::ref to reproduce that UB
Activity
pdimov commentedon Mar 16, 2025
std::refshould work. Is there a specific example where there's a problem?denzor200 commentedon Mar 18, 2025
Nope, not a specific use case at all, moreover - I'm not going to capture by reference via this library in a real code :)
The situation is that I am currently collecting ideas for improving the Clang Tidy static analysis tool.
Recently I've submitted nice Feature Request(llvm/llvm-project#120863) to seek and hint UB that's created due to incorrect C++11 lambda usage.
Then all I want to know is whether it is possible to reproduce the same UB by incorrectly using Boost Lambda 2 instead of C++11 lambda.
Hmmm, sounds interesting. I will try
std::refto reproduce that UB