]> www.ginac.de Git - cln.git/commit
Replace CL_REQUIRE/CL_PROVIDE(cl_SV_ringelt) with portable code.
authorAlexei Sheplyakov <varg@theor.jinr.ru>
Thu, 21 Aug 2008 17:16:50 +0000 (21:16 +0400)
committerAlexei Sheplyakov <varg@theor.jinr.ru>
Wed, 27 Aug 2008 04:41:06 +0000 (08:41 +0400)
commit5a524da0e894352a8c0d15c5e07d0b73452d790b
tree27e921a48dc0ac4ef74ce774f9fc4b39bb96df56
parentc8ce5a2fbf5ade435d424895b770a6d13a5b5a38
Replace CL_REQUIRE/CL_PROVIDE(cl_SV_ringelt) 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/SV_ringelt.h
src/vector/cl_SV_ringelt.cc
src/vector/cl_SV_ringelt_debug.cc