]> www.ginac.de Git - cln.git/commit
Replace CL_REQUIRE/CL_PROVIDE(cl_I_ring) with portable code.
authorAlexei Sheplyakov <varg@theor.jinr.ru>
Thu, 21 Aug 2008 11:55:11 +0000 (15:55 +0400)
committerAlexei Sheplyakov <varg@theor.jinr.ru>
Wed, 27 Aug 2008 04:41:05 +0000 (08:41 +0400)
commitae1b7178f7294d2d97e9bbf6725a4e0454ab4919
tree714e5f26a339fd252c49de3ff01a1dbd68893a15
parent311046b5c734f0df38db6953e1f3911d1229bf34
Replace CL_REQUIRE/CL_PROVIDE(cl_I_ring) 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/integer_ring.h
include/cln/univpoly_integer.h
src/integer/ring/cl_I_ring.cc