[GiNaC-devel] function classes
Richard B. Kreckel
kreckel at ginac.de
Wed Apr 19 22:16:02 CEST 2006
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/>
More information about the GiNaC-devel
mailing list