extern const type_info & typeid_${STRUCTURE};
extern const unsigned tinfo_${STRUCTURE};
-// macros
-
-#define ex_to_${STRUCTURE}(X) (static_cast<${STRUCTURE} const &>(*(X).bp))
-
} // namespace GiNaC
#endif // ndef _${STRUCTURE_UC}_H_
${input_structure}
#include <iostream>
+#include <stdexcept>
#include "${STRUCTURE}.h"
#include "print.h"
switch (i) {
${let_op_statements}
}
- errormsg("${STRUCTURE}::let_op(): should not reach this point");
- return *new ex(fail());
+ throw(std::runtime_error("${STRUCTURE}::let_op(): should not have reached this point"));
}
ex ${STRUCTURE}::expand(unsigned options) const