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
Fix Issue 13230: std.variant.Variant Uses Deprecated .min Property in opArithmetic When T is a Floating Point Type #2386
Conversation
|
The compiler is telling me to use min_normal in place of min. If this isn't the correct action in all cases, then that deprecation message needs to be changed. |
I believe it is wrong deprecation message. More appropriate one may be I am not very educated in this topic though. |
Hold on a moment, why is typeof(float.max) returning true for implicit conversion to integral types in the first place? |
That is exactly the strange part. All there print pragma(msg, is(typeof(float.max) : int));
pragma(msg, is(typeof(float.max) : ulong));
pragma(msg, is(typeof(float.max) : long)); |
Is the deprecation message printed when you try to run the following code locally?
|
|
Then this pull shouldn't change any behaviour other than silencing that deprecation message. |
This deprecation message highlights a bug. It effectively checks if btw I can see deprecation printed locally, will check how it gets there a bit later. |
The message is being printed because even though the |
Works for me. |
Auto-merge toggled on |
Fix Issue 13230: std.variant.Variant Uses Deprecated .min Property in opArithmetic When T is a Floating Point Type
https://issues.dlang.org/show_bug.cgi?id=13230