December 18, 2004 Not allowed: "operator new(size_t size) throw(std::bad_alloc)"? | ||||
---|---|---|---|---|
| ||||
This, and even void operator delete(void* pointer) throw() { .. } will cause an error message in DMC: Error: Exception specifications must match exactly for each declaration of a function This is not standard-compliant behaviour. I need to specify the "throw(...)" part since other standard-compliant compilers _require_ it. Could it be fixed? Best regards, Yongwei |
December 27, 2004 Re: Not allowed: "operator new(size_t size) throw(std::bad_alloc)"? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Wu Yongwei | "Wu Yongwei" <Wu_member@pathlink.com> wrote in message news:cq133i$1dua$1@digitaldaemon.com... > This, and even > > void operator delete(void* pointer) throw() > { > .. > } > > will cause an error message in DMC: > > Error: Exception specifications must match exactly for each declaration of a > function > > This is not standard-compliant behaviour. I need to specify the "throw(...)" > part since other standard-compliant compilers _require_ it. > > Could it be fixed? Yes. I'll add it to the error list. |
Copyright © 1999-2021 by the D Language Foundation