[GiNaC-list] Include Guards

Chris Dams C.Dams at science.ru.nl
Thu Jan 20 10:10:00 CET 2005


Dear Jason,

On Wed, 19 Jan 2005, Jason Dusek wrote:

> Can include guards solve this problem? Do I *have* to make that evil
> factory initializer thingy?

The simplest way is to just declare symbols in header files (i.e.,
symbol x;) and to define them in one cpp-file (i.e., symbol x("x");). That
is what I generally do. I am not a big fan of factories either.

Best wishes,
Chris




More information about the GiNaC-list mailing list