News for hackers. Stuff that matters.
Re:John Carmack on Inlined Code by mentos on Friday September 26, 2014 @07:25PM (#8375419)
I'm new to C++ so please forgive my ignorance but where is howAwesome() defined in result1's lambda?
Re:John Carmack on Inlined Code by sjolsen on Friday September 26, 2014 @07:29PM (#8375429)
It isn't. It's a part of the type "ResultT1."
Re:John Carmack on Inlined Code by hawkice on Friday September 26, 2014 @09:02PM (#8375671)
Those lambdas are immediately applied, so it's defined in the type returned by them.