]> www.ginac.de Git - cln.git/commit
Replace CL_REQUIRE/CL_PROVIDE(cl_MI) with portable code.
authorAlexei Sheplyakov <varg@theor.jinr.ru>
Thu, 21 Aug 2008 11:56:43 +0000 (15:56 +0400)
committerAlexei Sheplyakov <varg@theor.jinr.ru>
Wed, 27 Aug 2008 04:41:05 +0000 (08:41 +0400)
commit2ee2f088755c856d4eed429ed7fcdf4ca519ae00
treeba8f46f32575ac38051696cbc34ee084953686e8
parentec25de1e6ca125433a2dbd7f6f85fb09c16c2743
Replace CL_REQUIRE/CL_PROVIDE(cl_MI) 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/modinteger.h
src/modinteger/cl_MI.cc