←back to thread

10 points jandeboevrie | 1 comments | | HN request time: 0.212s | source
Show context
jeffbee ◴[] No.43374885[source]
Hrmm. What exactly is the value of the lambda in this scenario? The case for it seems aesthetic. Anyway, lambdas are not anonymous. They have a name but the author is not allowed to know it. So it seems like six of these or half a dozen of those.
replies(1): >>43374902 #
1. usefulcat ◴[] No.43374902[source]
I agree that in this particular case most compilers would be able to take advantage of the compile time constant even without any templates. But I also suspect there could be other cases where templates might be useful or necessary.