July 26, 2003 CONFUSING ERR MSG: constructor this (char[] msg) does not match argument types () | ||||
---|---|---|---|---|
| ||||
DMD 0.68, RH Linux 9 What does this error message mean? I can't even figure out which line caused it, so it's really hard to debug my code. :( |
July 28, 2003 Re: CONFUSING ERR MSG: constructor this (char[] msg) does not match argument types () | ||||
---|---|---|---|---|
| ||||
Posted in reply to Russ Lewis | Russ Lewis wrote:
> DMD 0.68, RH Linux 9
>
> What does this error message mean? I can't even figure out which line caused it, so it's really hard to debug my code. :(
I traced down the error to this line of code:
class StackAssertError : public Error {};
which doesn't work because Error has no default constructor. So the definition changed to
class StackAssertError : public Error
{
public:
this()
{
super("StackAssertError");
}
};
I would still hope that the error message gets clearer sometime... :)
Russ
|
Copyright © 1999-2021 by the D Language Foundation