Original Post
I am in the process of writing a class overloading the new and delete operators. For this particular class, however, it makes no sense, and is definitely an error, to use the operators new[] and delete[]. So I would want to overload those operators, but have them generate a compile-time warning or error.
I have absolutely no idea how to do this, or if it is even possible. Is there some standard way of signalling to the compiler that it should generate a warning or error?
If there is no standard way of doing it, is there a way to do it that is Visual C++ specific?
Help or URL''s highly appreciated.
-Neophyte
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GED d- s:+ a- C++$ UL++ P++ L++ E W+ N+ o K? w !O M--(+) V-- PS+
PE Y+ PGP t-- 5++ X+ R(+) rv+(++) b+++ DI+ D(+) G e+>++ h r--> y+
----- END GEEK CODE BLOCK-----
geekcode.com