std.getopt: Re-add constructor removed in PR #3489

This commit is contained in:
Vladimir Panteleev 2015-10-05 19:49:53 +00:00
parent edc405cacd
commit c403d644a4

View file

@ -45,6 +45,12 @@ $(UL
*/ */
class GetOptException : Exception class GetOptException : Exception
{ {
@safe pure nothrow
this(string msg, string file = __FILE__,
size_t line = __LINE__)
{
super(msg, file, line);
}
@safe pure nothrow @safe pure nothrow
this(string msg, Exception next, string file = __FILE__, this(string msg, Exception next, string file = __FILE__,
size_t line = __LINE__) size_t line = __LINE__)
@ -53,6 +59,9 @@ class GetOptException : Exception
} }
} }
static assert(is(typeof(new GetOptException("message"))));
static assert(is(typeof(new GetOptException("message", Exception.init))));
/** /**
Parse and remove command line options from an string array. Parse and remove command line options from an string array.