Opened 6 years ago
MP_variable.cpp does not compile with Sun Studio compilers
|Reported by:||lou||Owned by:||somebody|
|Severity:||blocker||Keywords:||Solaris Studio implicit copy constructor|
The MP_variable constructor uses this idiom
to initialise upperLimit and lowerLimit. As Sun interprets the C++ standards, this creates an implicit requirement for a copy constructor for MP_data, which is explicitly disabled. I can't see why the nested constructor is needed --- upperLimit and lowerLimit are both of type MP_data. Direct construction seems to work just fine:
With matching changes for lowerLimit, FlopC++ will build and pass its unit test on Solaris with Studio compilers.