Topic: operator overloading of new and delete


Author: fjh@mundook.cs.mu.OZ.AU (Fergus Henderson)
Date: 1997/10/30
Raw View
"Terry Mancey" <TMancey@netcomuk.co.uk> writes:

>In Watcom C/C++ v10.6 I've overloaded the new, new [], delete and delete []
>operators without any problem, but now I try this in MSVC++ v4.2 and it only
>allows me to overload the new and delete operators.  Is this the standard or
>am I doing something stupid.

Allowing users to overload the `new []' and `delete []' operators
is a relatively new feature of (draft) standard C++; some compilers
don't yet support it.

--
Fergus Henderson <fjh@cs.mu.oz.au>   |  "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh>   |  of excellence is a lethal habit"
PGP: finger fjh@128.250.37.3         |     -- the last words of T. S. Garp.
---
[ comp.std.c++ is moderated.  To submit articles: try just posting with      ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu         ]
[ FAQ:      http://reality.sgi.com/employees/austern_mti/std-c++/faq.html    ]
[ Policy:   http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
[ Comments? mailto:std-c++-request@ncar.ucar.edu                             ]





Author: "Terry Mancey" <TMancey@netcomuk.co.uk>
Date: 1997/10/29
Raw View
In Watcom C/C++ v10.6 I've overloaded the new, new [], delete and delete []
operators without any problem, but now I try this in MSVC++ v4.2 and it only
allows me to overload the new and delete operators.  Is this the standard or
am I doing something stupid.

If anyones got a solution to this could they please email me at
TMancey@NetcomUK.CO.UK

Thanks in advance

Terry Mancey
---
[ comp.std.c++ is moderated.  To submit articles: try just posting with      ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu         ]
[ FAQ:      http://reality.sgi.com/employees/austern_mti/std-c++/faq.html    ]
[ Policy:   http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
[ Comments? mailto:std-c++-request@ncar.ucar.edu                             ]