News for hackers. Stuff that matters.
Re:Compiler Bug Causes Compiler Bug: How a 12-Year-Old G++ B... by jeffbee on Friday August 15, 2025 @04:18PM (#44916869)
The horrendous hacks went away with concepts. SFINAE is dead. Spaceship operator, while perhaps not ideal from every perspective, radically simplifies the workload of implementing comparators.
Re:Compiler Bug Causes Compiler Bug: How a 12-Year-Old G++ B... by saagarjha on Friday August 15, 2025 @05:42PM (#44917580)
Assuming the thing you want actually has a concept, sure.
Re:Compiler Bug Causes Compiler Bug: How a 12-Year-Old G++ B... by majoe on Friday August 15, 2025 @06:29PM (#44918018)
You can define your own concepts. What is your point?

I haven't seen an example yet, where concepts weren't simpler and easier to read/understand than SFINAE shenanigans.

Re:Compiler Bug Causes Compiler Bug: How a 12-Year-Old G++ B... by jeffbee on Friday August 15, 2025 @07:19PM (#44918385)
Not only can you define concepts, it is highly entertaining and educational. You can write a concept that makes a function only available on Tuesdays, for example.