logoalt Hacker News

jandrewrogersyesterday at 5:26 PM0 repliesview on HN

Yes, these types of scenarios are commonly handled with C++20 concepts. The main thing contracts do is provide a standardized scaffolding for enforcement.