-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Projections and constraint verbosity #5
Comments
More precisely:
|
Out-of-order template parameters lets us do away with the explicit requires clause. Still lots of verbosity and repetition, but this is better:
@asutton , care to give your $0.02? It sure would be nice to check if something is callable and get its return type in one step. The separate and redundant
|
Yuck. That's something we always wanted to steer clear of. It's seems a bit |
Support for proxy references has forced me to solve the verbosity issue by grouping these constraints into an
Much of the complexity gets squirreled away in the |
I spent a lot of time thinking about this over the break, and I don't see I'm convinced that this is not hacky. There is simply no other way to Also, I thought there was a proposal for default arguments that allowed template Not sure what its status was. Andrew |
OK good. I don't feel bad about that. The only hacky bit comes from proxy reference support. That support replaces the Binary functions could be called like That whole mess is hidden away in the |
Closing this issue, but it would still be nice to be able to say stuff like:
|
Andrew |
Is that another way of saying, "Dream on"? ;-) |
Let's put it on our wish list :)
|
The presence of projection arguments in the algorithm signature seem to make it impossible to use the concept-checking short form. For instance, here is the two sequence overload
Figure out how to bring the verbosity under control.
The text was updated successfully, but these errors were encountered: