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();
Mark a value as valid or invalid.
T value() const
Sometimes it's more convenient to not rely on a compiler supplied conversion, especially when the com...
Fallible(const Fallible< T > &other)
Fallible< T > & operator=(const Fallible< T > &other)
Fallible()
The default constructor creates an invalid object.
Fallible(const T &value)
Create a valid object.
this file contains all the compiler specific defines
bool Bool
Define the standard types used by Casacore.