-
Notifications
You must be signed in to change notification settings - Fork 85
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
Migration advice for hashable-1.4
#232
Comments
@sjakobi don't try. Turn the warning off for time being. That's why I suggested to do (another alterntative) release soon, with |
a CPP hack is to do #if MIN_VERSION_hashable(1,4,0)
#define HASHABLE(k) Hashable k
#else
#define HASHABLE(k) Eq k, Hashable k
#endif
f :: (HASHABLE(k)) => bla k but the sooner you get rid of it, the saner you'll be. |
Thanks for the advice, @phadej! Indeed it seems best not to change the constraints for now. We can consider requiring Maybe leave this issue open for a bit, so other users with similar questions can find it more easily. |
What's the best way to make code
-Wredundant-constraints
-clean withhashable-1.4
while retaining compatibility withhashable < 1.4
?In
unordered-containers
, I'd rather not have CPP-conditionals on every function that so far required bothEq
andHashable
, like this:Is there a recommended way to achieve the same effect with less visual noise?
(CC @treeowl)
The text was updated successfully, but these errors were encountered: