]> www.ginac.de Git - cln.git/commit
Replace CL_REQUIRE/CL_PROVIDE(cl_UP_unnamed) with portable code.
authorAlexei Sheplyakov <varg@theor.jinr.ru>
Thu, 21 Aug 2008 15:32:14 +0000 (19:32 +0400)
committerAlexei Sheplyakov <varg@theor.jinr.ru>
Wed, 27 Aug 2008 04:41:08 +0000 (08:41 +0400)
commit2a9a73654257b0dd3b78fb6b353ecf0188dc497b
tree6e830aa92bf0d8211a5e762585b79fce22c1a770
parent9dfb3f1d5403dcb8eb72a089170037ded0b7d658
Replace CL_REQUIRE/CL_PROVIDE(cl_UP_unnamed) with portable code.

The order of initialization of non-local objects in different compilation units
is not specified in C++. Hence special care should be taken to avoid static
initialization order fiasco. CLN solved the problem with some evil (GCC
specific, and even GCC-version-specific) hack. Replace it with a technique
similar to one used in STL to initialize std::cout and friends.
include/cln/univpoly.h
src/polynomial/elem/cl_UP_unnamed.cc