2024-05-23 18:29:03
Wish #cpp allowed concept definitions in class scope, not just namespace scope. DRY, better encapsulate class, reduce litter outside class.
E.g., if a class has many functions w "strict bool" parameter:
- (a) works, not DRY
- (b) DRY but concept visible in client along with class
//a: repeat w each function
template<typename B> requires std::same_as<B, bo…