[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [MPFRCPP] order of initialization of globals
From: |
Alexey Beshenov |
Subject: |
Re: [MPFRCPP] order of initialization of globals |
Date: |
Sun, 5 Aug 2007 11:30:46 +0400 |
User-agent: |
KMail/1.9.5 |
> If the initialization of mpfr::Parameters and mpfr::Real::params_ is
> moved to the start of initialization.cpp and executed first, then the
> crash is avoided.
Thanks. I can't test on MS Visual Studio, so, please, send me your working
patch. I'll apply the patch and test it on g++.
The order of construction of global static objects is undefined in C++, so
there are many potential bugs...
--
Alexey Beshenov. http://beshenov.ru/