Browse Source
replace CL_REQUIRE/CL_PROVIDE(cl_0_ring) with (more) portable code.
replace CL_REQUIRE/CL_PROVIDE(cl_0_ring) with (more) 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.master
Alexei Sheplyakov
17 years ago
2 changed files with 73 additions and 31 deletions
Write
Preview
Loading…
Cancel
Save
Reference in new issue