c++ - Not allowed: "operator new(size_t size) throw(std::bad_alloc)"?
- Wu Yongwei (13/13) Dec 18 2004 This, and even
- Walter (5/16) Dec 27 2004 a
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
Dec 18 2004
"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 ofafunction 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.
Dec 27 2004








"Walter" <newshound digitalmars.com>