Skip to content

Commit d4229c4

Browse files
committed
Replace custom exception ctor in std.conv.ConvException with the standard ones
1 parent 781ea57 commit d4229c4

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

std/conv.d

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,9 @@ package template convFormat()
4040
*/
4141
class ConvException : Exception
4242
{
43-
@safe pure nothrow
44-
this(string s, string fn = __FILE__, size_t ln = __LINE__)
45-
{
46-
super(s, fn, ln);
47-
}
43+
import std.exception : basicExceptionCtors;
44+
///
45+
mixin basicExceptionCtors;
4846
}
4947

5048
private string convError_unexpected(S)(S source)

0 commit comments

Comments
 (0)