]> www.ginac.de Git - cln.git/commit
Replace CL_REQUIRE/CL_PROVIDE(cl_GV_number) with portable code.
authorAlexei Sheplyakov <varg@theor.jinr.ru>
Thu, 21 Aug 2008 17:18:57 +0000 (21:18 +0400)
committerAlexei Sheplyakov <varg@theor.jinr.ru>
Wed, 27 Aug 2008 04:41:06 +0000 (08:41 +0400)
commiteffb39946984178088feafba29a007f32009c23f
treea350b121362f3f9b57e25b7ade44791a9e2e3488
parentd86b1fe18cfc4731e0d90e90384986007aed3e84
Replace CL_REQUIRE/CL_PROVIDE(cl_GV_number) 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_number.h
src/vector/cl_GV_number.cc
src/vector/cl_GV_number_debug.cc