Constructor template -- bug?
Bekenn
leaveme at alone.com
Wed Mar 2 00:14:55 PST 2011
On 3/1/2011 11:47 PM, Jonathan M Davis wrote:
>
> I should also point out that there is absolutely no need to use template for
> what you're trying to do. Just declare the constructor like so:
>
> this(string message, string file = __FILE__, size_t line = __LINE__ Throwable
> next = null) { ... }
You are absolutely right; silly me. I'd assumed that would pick up the
file and line at the point of declaration...
More information about the Digitalmars-d-learn
mailing list