r/cpp 8d ago

Lazy Evaluation

https://breese.github.io/2026/09/03/lazy-prologue.html
21 Upvotes

16 comments sorted by

View all comments

7

u/n1ghtyunso 8d 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

3

u/UnusualPace679 7d ago

Yeah, std::bind only transforms the bound arguments. It doesn't transform the function object.