We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 669cd61 commit aef2ec6Copy full SHA for aef2ec6
std/utf.d
@@ -66,10 +66,17 @@ class UTFException : Exception
66
}
67
68
69
- override string toString()
+ override string toString() const
70
{
71
if (len == 0)
72
- return super.toString();
+ {
73
+ /* Exception.toString() is not marked as const, although
74
+ * it is const-compatible.
75
+ */
76
+ //return super.toString();
77
+ auto e = () @trusted { return cast(Exception)super; } ();
78
+ return e.toString();
79
+ }
80
81
string result = "Invalid UTF sequence:";
82
0 commit comments