-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
use metal::less as default ordering for metal::sort #101
use metal::less as default ordering for metal::sort #101
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm happy to merge this once unit tests and docs have been updated.
25b406f
to
ffcdd58
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding tests and docs, to answer your question I think we definitely want this feature.
The only remaining thing is making sure docs read nicely and rebasing on the new convention to prefer class
over typename
.
111426c
to
3c0c2af
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What can we do now?
Worst case I think we should define it in terms of a variadic pack only under METAL_WORKAROUND
, which means only MSVC and really old GCC would see a variadic pack, in particular docs would show the right thing.
Having a slightly different behavior for broken compilers is still better than either not having the feature at all or exposing the variadic pack on all compilers.
using sort = detail::call< | ||
detail::_sort<lbd>::template type, | ||
detail::_sort<lbd...>::template type, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We do already have default template arguments on aliases, so there's hope.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you mind if I open a couple of PRs in order to test different versions? Or should I prefer godbolt.org in order to reduce the load of your CI setup?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't mind extra PRs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried, but I think it is not worth any more effort. I vote for the workaround.
06680ac
to
2eaf8c9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, thanks!
see #73 (comment)