On 6/7/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Hi,
I'm a Msc. student in the computer science department of the Technion, the
Israeli Institute of Technology.
My thesis is on compile time checking of dynamic SQL queries using C++
templates.
There is a __COUNTER__ macro, supported by Microsoft C++ compiler which can
help
me a lot in the thesis implementation.
This macro expands to an integer starting with 0 and incrementing by 1 every
time it is used.
I believe it is a very useful macro way beyond my thesis.
I also think it is very simple to implement and I'm willing to implement it for
the gnu compiler.
Would you consider it adding it to the official gnu compiler if I'll implement
it?
What is the standard procedure to do so?
First of all, you would have to define exactly how this __COUNTER__
macro would behave (for example, what does it do in a template
context? when is the counter incremented?).
Then, you'd have to file a copyright assignment because the gcc
project only accepts patches if the copyright is assigned to the FSF.
Finally, you'd write and submit the patch.
Simple enough, no? :-)
Gr.
Steven