File tree 2 files changed +18
-0
lines changed
2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,15 @@ class smt2_tokenizert
24
24
class smt2_errort
25
25
{
26
26
public:
27
+ smt2_errort (smt2_errort &&) = default ;
28
+
29
+ smt2_errort (const smt2_errort &other)
30
+ {
31
+ // ostringstream does not have a copy constructor
32
+ message << other.message .str ();
33
+ line_no = other.line_no ;
34
+ }
35
+
27
36
smt2_errort (const std::string &_message, unsigned _line_no)
28
37
: line_no(_line_no)
29
38
{
Original file line number Diff line number Diff line change @@ -25,6 +25,15 @@ class typecheckt:public messaget
25
25
class errort final
26
26
{
27
27
public:
28
+ errort () = default ;
29
+ errort (errort &&) = default ;
30
+ errort (const errort &other)
31
+ {
32
+ // ostringstream does not have a copy constructor
33
+ message << other.message .str ();
34
+ __location = other.__location ;
35
+ }
36
+
28
37
std::string what () const
29
38
{
30
39
return message.str ();
You can’t perform that action at this time.
0 commit comments