On Fri, Feb 11, 2005 at 06:08:55AM -0800, san san wrote:
> Hi Jon,
>
> Thanks again for replying. Let me clarify my problem:
> I have an assembly file of a .cpp file, from the
> assembly file i want to figure out where the compl has
> created temp objects.
Ah, I see what you mean now - but I probably can't help you with that.
> For this i thought of looking for copy-ctor becuase
> temp obj. are created using copy-ctors. I am not sure
> if there is any other way by which i can figure out
> that.
Not necessarily true, temporaries might be created by any non-explicit
constructor, consider
struct A {
A(int);
};
void f(const A&);
f(0); // creates a temporary A using A::A(int)
jon
--
"It is always the best policy to tell the truth, unless, of course, you
are an exceptionally good liar."
- Jerome K. Jerome