]> www.ginac.de Git - cln.git/commit
Replace CL_REQUIRE/CL_PROVIDE(cl_C_ring) with portable code.
authorAlexei Sheplyakov <varg@theor.jinr.ru>
Thu, 21 Aug 2008 11:18:34 +0000 (15:18 +0400)
committerAlexei Sheplyakov <varg@theor.jinr.ru>
Wed, 27 Aug 2008 04:41:04 +0000 (08:41 +0400)
commitda9fbcea6c2458ecac3c295ee56f1d002ffc2b17
treefdaee23fcce3e31f11a3cac40ac99d133c667d2c
parent67afbefaff61817e08faf507f74f1bb8f5206a8a
Replace CL_REQUIRE/CL_PROVIDE(cl_C_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/complex_ring.h
include/cln/univpoly_complex.h
src/complex/ring/cl_C_ring.cc