Thread overview | ||||||
---|---|---|---|---|---|---|
|
December 02, 2010 [Issue 5310] New: Variant == const(Variant) doesn't compile | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=5310 Summary: Variant == const(Variant) doesn't compile Product: D Version: D2 Platform: Other OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: Phobos AssignedTo: nobody@puremagic.com ReportedBy: clugdbug@yahoo.com.au --- Comment #0 from Don <clugdbug@yahoo.com.au> 2010-12-02 13:23:11 PST --- import std.variant; void foo(const Variant a) { Variant b; assert (a == b); } --- >dmd test0 test0.d(12): Error: template std.variant.VariantN!(maxSize).VariantN.opEquals(T ) does not match any function template declaration test0.d(12): Error: template std.variant.VariantN!(maxSize).VariantN.opEquals(T ) cannot deduce template function from argument types !()(VariantN!(maxSize)) And if you change the assert into: assert(b==a); you get: c:\dmd\windows\bin\..\..\src\phobos\std\variant.d(499): Error: static assert "A ssigning Variant objects from const Variant objects is currently not supported." c:\dmd\windows\bin\..\..\src\phobos\std\variant.d(481): instantiated from here: opAssign!(const(VariantN!(maxSize))) c:\dmd\windows\bin\..\..\src\phobos\std\variant.d(737): instantiated from here: __ctor!(const(VariantN!(maxSize))) test0.d(12): instantiated from here: opEquals!(const(VariantN!(maxSize)) ) ---- -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
January 09, 2011 [Issue 5310] Variant == const(Variant) doesn't compile | ||||
---|---|---|---|---|
| ||||
Posted in reply to Don | http://d.puremagic.com/issues/show_bug.cgi?id=5310 Andrei Alexandrescu <andrei@metalanguage.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED CC| |andrei@metalanguage.com AssignedTo|nobody@puremagic.com |andrei@metalanguage.com -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
February 25, 2013 [Issue 5310] Variant == const(Variant) doesn't compile | ||||
---|---|---|---|---|
| ||||
Posted in reply to Don | http://d.puremagic.com/issues/show_bug.cgi?id=5310 Alex Rønne Petersen <alex@lycus.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED CC| |alex@lycus.org Resolution| |FIXED -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
February 25, 2013 [Issue 5310] Variant == const(Variant) doesn't compile | ||||
---|---|---|---|---|
| ||||
Posted in reply to Don | http://d.puremagic.com/issues/show_bug.cgi?id=5310 Alex Rønne Petersen <alex@lycus.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED CC| |alex@lycus.org Resolution| |FIXED --- Comment #1 from github-bugzilla@puremagic.com 2013-02-24 16:51:31 PST --- Commits pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/7b03c1eda59cd89739e4164235e43522269b009b issue 5310 https://github.com/D-Programming-Language/phobos/commit/75f578228cd1975995551894ca0717eb19fda0f2 Merge pull request #1163 from andralex/5310 Fix Issue 5310 - Variant == const(Variant) doesn't compile -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation