19 Apr
2006
19 Apr
'06
10:16 p.m.
Jens Vollinga wrote:
Hmmm... It sounds like every solution has disadvantages. Yet another ugly idea: a function that is declared as thing_function, has GINAC_DECLARE_FUNCTION also emit the code friend ex thing(const ex&x){return thing_function(x);}. Note the use of "friend" to be able to declare an ordinary function inside a class body.
I will try this one out.
When you do that, make sure to try using GCC 4.1. We recently were surprised to find out that friend declarations are not declarations. Cheers -richy. -- Richard B. Kreckel <http://www.ginac.de/~kreckel/>