26#ifndef CASA_FALLIBLE_H
27#define CASA_FALLIBLE_H
29#include <casacore/casa/aips.h>
30#include <casacore/casa/Exceptions/Error.h>
43[[deprecated(
"Fallible is replaced by std::optional")]]
46 AipsError(
"Fallible<T>:: invalid object accessed. Sorry I don't know"
122class [[deprecated(
"Use std::optional")]]
Fallible {
143 if (!
isValid_p) AccessInvalidFallibleObject();
150 if (!
isValid_p) AccessInvalidFallibleObject();
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.
For temporary backward namespace compatibility, use casa as alias for casacore.
bool Bool
Define the standard types used by Casacore.
void AccessInvalidFallibleObject()