llvm-project
e8c22413 - [orc-rt] std::forward unbound arguments when using bind_front. (#155723)

Commit
15 days ago
[orc-rt] std::forward unbound arguments when using bind_front. (#155723) The call operator for the type returned by bind_front should forward its arguments, rather than moving them. This ensures that we handle lvalue references in unbound args correctly: auto B = bind_front([](int &) {}); int N = 7; B(N); // <- no longer an error!
Author
Parents
Loading