]> www.ginac.de Git - cln.git/commit
Replace CL_REQUIRE/CL_PROVIDE(cl_GV_I) with portable code.
authorAlexei Sheplyakov <varg@theor.jinr.ru>
Thu, 21 Aug 2008 17:20:54 +0000 (21:20 +0400)
committerAlexei Sheplyakov <varg@theor.jinr.ru>
Wed, 27 Aug 2008 04:41:06 +0000 (08:41 +0400)
commit1b373d7ee9876bb4f77f119b2bceda346d8e0222
treec7a9c7b66e8e9828456f8fc9716847106f5d53ae
parenteffb39946984178088feafba29a007f32009c23f
Replace CL_REQUIRE/CL_PROVIDE(cl_GV_I) 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/GV_integer.h
src/vector/cl_GV_I.cc
src/vector/cl_GV_I_debug.cc