]> www.ginac.de Git - cln.git/commit - src/real/ring/cl_R_ring.cc
Replace CL_REQUIRE/CL_PROVIDE(cl_R_ring) with portable code.
authorAlexei Sheplyakov <varg@theor.jinr.ru>
Thu, 21 Aug 2008 11:54:46 +0000 (15:54 +0400)
committerAlexei Sheplyakov <varg@theor.jinr.ru>
Wed, 27 Aug 2008 04:41:05 +0000 (08:41 +0400)
commit311046b5c734f0df38db6953e1f3911d1229bf34
treead295f71a292b65928fc88a932a92b4db8fb39c3
parent7f619754e2a3d95a08c47d6e2312de8021ca2a5f
Replace CL_REQUIRE/CL_PROVIDE(cl_R_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/real_ring.h
include/cln/univpoly_real.h
src/real/ring/cl_R_ring.cc