| 213 | }; |
| 214 | |
| 215 | class forward_exception final : public std::exception { |
| 216 | std::string mWhat; |
| 217 | |
| 218 | public: |
| 219 | forward_exception() = delete; |
| 220 | |
| 221 | explicit forward_exception(const char *str) noexcept : mWhat(str) {} |
| 222 | |
| 223 | forward_exception(const forward_exception &) = default; |
| 224 | |
| 225 | forward_exception(forward_exception &&) noexcept = default; |
| 226 | |
| 227 | ~forward_exception() override = default; |
| 228 | |
| 229 | forward_exception &operator=(const forward_exception &) = default; |
| 230 | |
| 231 | forward_exception &operator=(forward_exception &&) = default; |
| 232 | |
| 233 | const char *what() const noexcept override |
| 234 | { |
| 235 | return this->mWhat.c_str(); |
| 236 | } |
| 237 | }; |
| 238 | |
| 239 | // Numeric |
| 240 | using numeric_float = long double; |
no outgoing calls
no test coverage detected