If I'm not wrong the < is defined but not implemented, so you can implement
it in any other cpp file and linker will do the job. It's like the part
file on C# but also kind of a hack. Hopefully someone has a better idea.

I think we would be able to generate the operator too, just calling the
same operator of every member in other of declaration? What you think?
 Just let us know if you have a patch.

Cheers,
Henrique


On 7 November 2013 08:50, Jens Geyer <[email protected]> wrote:

> Generated code should not be modified for the very reason you mentioned.
> Some languages like C# generate partial classes that can be easily extended.
>
> It could be worth a look if specifically this operator overload
> could/should be generated as well. One of the C++ people may chime in here.
> ________________________________
> Von: Bryan Pham
> Gesendet: 07.11.2013 05:26
> An: [email protected]
> Betreff: C++ operator<
>
> I was wondering what's the best practice for editing generated code.  I
> want to enable operator< but everytime we generate code, I'd have to
> remember to edit the same code over.
>

Reply via email to