]> www.ginac.de Git - cln.git/commit
Replace CL_REQUIRE/CL_PROVIDE(cl_SV_number) with portable code.
authorAlexei Sheplyakov <varg@theor.jinr.ru>
Thu, 21 Aug 2008 17:18:11 +0000 (21:18 +0400)
committerAlexei Sheplyakov <varg@theor.jinr.ru>
Wed, 27 Aug 2008 04:41:06 +0000 (08:41 +0400)
commitd86b1fe18cfc4731e0d90e90384986007aed3e84
treec1f5bdc87f4a9d94b03c76895b5210acfe73b25d
parent5a524da0e894352a8c0d15c5e07d0b73452d790b
Replace CL_REQUIRE/CL_PROVIDE(cl_SV_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/SV_number.h
src/vector/cl_SV_number.cc
src/vector/cl_SV_number_debug.cc