[GiNaC-list] Problem using a user-defined class on Mac OS X.

Sheplyakov Alexei varg at theor.jinr.ru
Tue Apr 3 13:24:55 CEST 2007

On Tue, Apr 03, 2007 at 11:27:54AM +0200, Chris.Dams at mi.infn.it wrote:

> > I seem to be having a problem [...] the static member
> > class_info<registered_class_options>::first is (besides inside the GiNaC
> > dynamic library) also created within my executable.
> I now solved this by creating a file class_info.cpp (given below).

Interesting. There are 

template <class OPT> class_info<OPT> *class_info<OPT>::first = NULL;
template <class OPT> bool class_info<OPT>::parents_identified = false;

in class_info.h. So I wonder why explicit specialization makes any 

> Shall I add this file to the CVS?

I think we should understand how it works first.

Best regards,

All science is either physics or stamp collecting.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: Digital signature
Url : http://www.cebix.net/pipermail/ginac-list/attachments/20070403/314a1963/attachment.pgp

More information about the GiNaC-list mailing list