This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++ Patch/RFC] Final part of c++/26099, __is_convertible_to
On Jun 23, 2007, at 4:13 PM, Paolo Carlini wrote:
Andrew Pinski wrote:
Can you not add a new global state variable?
I'm open to suggestions...
I didn't bother to check to see if it works in this case, but,
sometimes there is a structure (usually GTYed), and you instead can
just add a new member to it. There is a existing single global
variable for that structure, but, that's someone else's problem to
clean up, at least you're not adding to the problem.
Then, in time, people convert routines to take that as a parameter
and then they fix up the allocation and deallocation of it to be in
the init and tear down routines and so on.