Hacker News new | ask | show | jobs
by jandrewrogers 93 days ago
Yes, these types of scenarios are commonly handled with C++20 concepts. The main thing contracts do is provide a standardized scaffolding for enforcement.