[Developers] Overlap between f1b2v10.cpp and f1b2vc10.cpp

Hans J. Skaug Hans.Skaug at math.uib.no
Thu Feb 14 12:39:05 PST 2013


Developers,

I am trying to add some overloaded versions of pow(), and discover
that the files f1b2v10.cpp and f1b2vc10.cpp contain a lot of overlapping
material (functions). Further, both files are are contained in
"objects.lst" which means they are both build and included in the libraries. 

I thought multiple definitions of a function was not allowed in C++,
so how can this be possible?

Even though it seems to work, is it desirable to have multiple definitions
like this in our trunk?

Hans


More information about the Developers mailing list