•
u/n1ghtyunso 3h ago
thats quite some build-up regarding std::bind usefulness and then all we get is a single short sentence?
huh?
having never used bind expressions myself, i was tempted to believe this works, but it seems the nested bind example doesnt compile anyway?
https://godbolt.org/z/K61jKvjWP
•
u/UnusualPace679 1h ago
Yeah,
std::bindonly transforms the bound arguments. It doesn't transform the function object.
11
u/STL MSVC STL Dev 4h ago
Classic
bindis bad. Don't use it. It's hard to understand, hard to optimize, and lambdas are better in basically every way.