28 #ifndef CASA_FALLIBLE_H 29 #define CASA_FALLIBLE_H 31 #include <casacore/casa/aips.h> 49 void AccessInvalidFallibleObject();
142 operator T()
const {
if (!
isValid_p) AccessInvalidFallibleObject();
Fallible(const T &value)
Create a valid object.
T value() const
Sometimes it's more convenient to not rely on a compiler supplied conversion, especially when the com...
Fallible()
The default constructor creates an invalid object.
Mark a value as valid or invalid.
bool Bool
Define the standard types used by Casacore.
Fallible(const Fallible< T > &other)
Fallible< T > & operator=(const Fallible< T > &other)
this file contains all the compiler specific defines