00001 #ifndef Geom_TrivialError_H 00002 #define Geom_TrivialError_H 00003 00004 /* struct to disambiguate constructors 00005 * 00006 */ 00007 00008 00009 struct InvalidError{}; 00010 struct ZeroError{}; 00011 // diagonal error with all value equal 00012 struct TrivialError { 00013 double m_value; 00014 TrivialError(double v) : m_value(v){} 00015 double value() const { return m_value;} 00016 operator double() const { return value();} 00017 }; 00018 00019 00020 #endif