Listing 2: UDouble constructors and destructor
// This is the default conversion from type double UDouble::UDouble(const double val = 0.0, const double unc = 0.0) : value(val), uncertainty(unc) { if ((unc < 0.0) && !is_correlated) { cerr << "Error: negative uncertainty: " << unc << endl; exit(EXIT_FAILURE); } } UDouble::UDouble(const UDouble& ud) : value(ud.value), uncertainty(ud.uncertainty) {} UDouble::~UDouble(void) {} //End of File