CAPD::DynSys Library  6.0.0
PARIConvert.h File Reference

Macros

#define INSTANCE_CONVERT_POD(type)
 

Detailed Description

Macro Definition Documentation

◆ INSTANCE_CONVERT_POD

#define INSTANCE_CONVERT_POD (   type)
Value:
template<> \
struct PARIConvert<type> \
{\
static GEN to(const type& v)\
{\
return stoi(v);\
}\
static type from(const GEN& v)\
{\
if (is_bigint(v)) {\
throw std::overflow_error("PARI requires big int");\
}\
return itos(v);\
}\
};