expansion analyzer now can use libgmp for better analysis

This commit is contained in:
Zeno Rogue
2020-07-05 00:55:56 +02:00
parent 2d7571034b
commit 6f2e7e90d5
4 changed files with 116 additions and 30 deletions
+6
View File
@@ -417,6 +417,12 @@ EX string as_cstring(string o) {
#endif
#endif
#if CAP_GMP
EX string its(mpq_class x) { std::stringstream ss; ss << x; return ss.str(); }
EX void print(hstream& hs, const mpq_class& x) {
std::stringstream ss; ss << x; print(hs, ss.str());
}
#endif
#if HDR
template<class... T> string lalign(int len, T... t) {