summaryrefslogtreecommitdiff
path: root/src/base/exception.h
diff options
context:
space:
mode:
authorGereon Kremer <gereon.kremer@cs.rwth-aachen.de>2021-03-03 17:50:45 +0100
committerGitHub <noreply@github.com>2021-03-03 16:50:45 +0000
commita02a794c383ae2381e1210f53174cefb8d94e615 (patch)
tree0eac511c22ba9eeba1925e3afa4f0542edf5cf60 /src/base/exception.h
parent6db84f6e373f9651af48df7b654e3992f68472ac (diff)
More cleanup of includes to reduce compilation times (#6037)
Similar to #6031, this PR implements suggestions from iwyu to reduce the number of includes in header files by introducing forward declarations and moving includes to source files.
Diffstat (limited to 'src/base/exception.h')
-rw-r--r--src/base/exception.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/base/exception.h b/src/base/exception.h
index 8a89c99fc..815e4011f 100644
--- a/src/base/exception.h
+++ b/src/base/exception.h
@@ -19,12 +19,8 @@
#ifndef CVC4__EXCEPTION_H
#define CVC4__EXCEPTION_H
-#include <cstdarg>
-#include <cstdlib>
#include <exception>
#include <iosfwd>
-#include <sstream>
-#include <stdexcept>
#include <string>
namespace CVC4 {
@@ -61,12 +57,7 @@ class CVC4_PUBLIC Exception : public std::exception {
* toString(), there is no stream, so the parameters are default
* and you'll get exprs and types printed using the AST language.
*/
- std::string toString() const
- {
- std::stringstream ss;
- toStream(ss);
- return ss.str();
- }
+ std::string toString() const;
/**
* Printing: feel free to redefine toStream(). When overridden in
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback