]> www.ginac.de Git - cln.git/commit
Replace CL_REQUIRE/CL_PROVIDE(cl_LF_globals) with portable code.
authorAlexei Sheplyakov <varg@theor.jinr.ru>
Thu, 21 Aug 2008 11:46:29 +0000 (15:46 +0400)
committerAlexei Sheplyakov <varg@theor.jinr.ru>
Wed, 27 Aug 2008 04:41:05 +0000 (08:41 +0400)
commit7f619754e2a3d95a08c47d6e2312de8021ca2a5f
tree08a4bb0994eb09d8cc891ec128e255eaf5df08d1
parent74ff6e93384732805503f941f3e33fff0a6de0ff
Replace CL_REQUIRE/CL_PROVIDE(cl_LF_globals) 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/lfloat_class.h
src/float/lfloat/elem/cl_LF_globals.cc