From 242b601a51c7ce30d98b456242822b2caa6e4796 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sun, 21 Mar 2021 10:44:38 +0100 Subject: [PATCH] added hr_exception_str --- hyper.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hyper.h b/hyper.h index 88d3dca9..9bf5acca 100644 --- a/hyper.h +++ b/hyper.h @@ -105,6 +105,8 @@ struct hr_wrong_dir: hr_exception { }; struct hr_wrong_geometry: hr_exception { }; +struct hr_exception_str: std::exception { string s; hr_exception_str(const string& s) : s(s) {} const char* what() { return s.c_str(); }}; + // genus (in grammar) #define GEN_M 0 #define GEN_F 1