Dan Gregory wrote: [comments about Sun CC options:]
-features=%all,no%iddollar,tmplife[...]
The compiler assumes -features=%all,no%iddollar,no%tmplife when no -features option is given, and this affects when temporary objects are destroyed.
I changed the line you mentioned:
� return _field != 0 ? UseTempBuffer(Definition().DescribeSubFields()) : 0;
To something that ought to be safe (changes in CVS):
const char* returnPtr = (_field != 0) ?
UseTempBuffer(Definition().DescribeSubFields()) : 0;
return returnPtr;
I can tweak it further if needed.
As you suggest, I would prefer to have code which works with default compiler settings. I'm sure my change won't affect other compilers that much, and the code in question is not truly performance critical anyway.
-jcw
_______________________________________________
metakit mailing list - [EMAIL PROTECTED]
http://www.equi4.com/mailman/listinfo/metakit
