26#ifndef CASA_FALLIBLE_H
27#define CASA_FALLIBLE_H
29#include <casacore/casa/aips.h>
47void AccessInvalidFallibleObject();
140 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()
The default constructor creates an invalid object.
Fallible< T > & operator=(const Fallible< T > &other)
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.
void AccessInvalidFallibleObject()