Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!ebt-inc!ebt-inc.uucp!jlv From: jlv@ebt-inc.uucp (Jeffrey L. Vogel) Newsgroups: comp.lang.c++ Subject: g++ and overloading the new operator Message-ID: <184@ebt-inc.UUCP> Date: 12 Dec 90 02:27:41 GMT Sender: jlv@ebt-inc.UUCP Organization: Electronic Book Technologies, Providence RI Lines: 21 Does g++ support overloading of the new operator?? I have tried the following: void * operator new(long size, my_data_type buf) { ... return buf; } { int *a; my_data_type b; ... a = new (b) int; } The result is a parse error before "new".