5 ms·
The horrendous hacks went away with concepts. SFINAE is dead. Spaceship operator, while perhaps not ideal from every perspective, radically simplifies the workl
by jeffbee 1y ago
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.
- saagarjha 1y agoAssuming the thing you want actually has a concept, sure.
- majoe 1y agoYou 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.
- jeffbee 1y agoNot 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.