@@ -63,9 +63,9 @@ class constant_val : public object_ref {
63
63
public:
64
64
constant_val (name const & n, names const & lparams, expr const & type);
65
65
constant_val (constant_val const & other):object_ref(other) {}
66
- constant_val (constant_val && other):object_ref(other) {}
66
+ constant_val (constant_val && other):object_ref(std::move( other) ) {}
67
67
constant_val & operator =(constant_val const & other) { object_ref::operator =(other); return *this ; }
68
- constant_val & operator =(constant_val && other) { object_ref::operator =(other); return *this ; }
68
+ constant_val & operator =(constant_val && other) { object_ref::operator =(std::move ( other) ); return *this ; }
69
69
name const & get_name () const { return static_cast <name const &>(cnstr_get_ref (*this , 0 )); }
70
70
names const & get_lparams () const { return static_cast <names const &>(cnstr_get_ref (*this , 1 )); }
71
71
expr const & get_type () const { return static_cast <expr const &>(cnstr_get_ref (*this , 2 )); }
@@ -79,9 +79,9 @@ class axiom_val : public object_ref {
79
79
public:
80
80
axiom_val (name const & n, names const & lparams, expr const & type, bool is_unsafe);
81
81
axiom_val (axiom_val const & other):object_ref(other) {}
82
- axiom_val (axiom_val && other):object_ref(other) {}
82
+ axiom_val (axiom_val && other):object_ref(std::move( other) ) {}
83
83
axiom_val & operator =(axiom_val const & other) { object_ref::operator =(other); return *this ; }
84
- axiom_val & operator =(axiom_val && other) { object_ref::operator =(other); return *this ; }
84
+ axiom_val & operator =(axiom_val && other) { object_ref::operator =(std::move ( other) ); return *this ; }
85
85
constant_val const & to_constant_val () const { return static_cast <constant_val const &>(cnstr_get_ref (*this , 0 )); }
86
86
name const & get_name () const { return to_constant_val ().get_name (); }
87
87
names const & get_lparams () const { return to_constant_val ().get_lparams (); }
@@ -105,9 +105,9 @@ class definition_val : public object_ref {
105
105
public:
106
106
definition_val (name const & n, names const & lparams, expr const & type, expr const & val, reducibility_hints const & hints, definition_safety safety, names const & all);
107
107
definition_val (definition_val const & other):object_ref(other) {}
108
- definition_val (definition_val && other):object_ref(other) {}
108
+ definition_val (definition_val && other):object_ref(std::move( other) ) {}
109
109
definition_val & operator =(definition_val const & other) { object_ref::operator =(other); return *this ; }
110
- definition_val & operator =(definition_val && other) { object_ref::operator =(other); return *this ; }
110
+ definition_val & operator =(definition_val && other) { object_ref::operator =(std::move ( other) ); return *this ; }
111
111
constant_val const & to_constant_val () const { return static_cast <constant_val const &>(cnstr_get_ref (*this , 0 )); }
112
112
name const & get_name () const { return to_constant_val ().get_name (); }
113
113
names const & get_lparams () const { return to_constant_val ().get_lparams (); }
@@ -128,9 +128,9 @@ class theorem_val : public object_ref {
128
128
public:
129
129
theorem_val (name const & n, names const & lparams, expr const & type, expr const & val, names const & all);
130
130
theorem_val (theorem_val const & other):object_ref(other) {}
131
- theorem_val (theorem_val && other):object_ref(other) {}
131
+ theorem_val (theorem_val && other):object_ref(std::move( other) ) {}
132
132
theorem_val & operator =(theorem_val const & other) { object_ref::operator =(other); return *this ; }
133
- theorem_val & operator =(theorem_val && other) { object_ref::operator =(other); return *this ; }
133
+ theorem_val & operator =(theorem_val && other) { object_ref::operator =(std::move ( other) ); return *this ; }
134
134
constant_val const & to_constant_val () const { return static_cast <constant_val const &>(cnstr_get_ref (*this , 0 )); }
135
135
name const & get_name () const { return to_constant_val ().get_name (); }
136
136
names const & get_lparams () const { return to_constant_val ().get_lparams (); }
@@ -148,9 +148,9 @@ class opaque_val : public object_ref {
148
148
public:
149
149
opaque_val (name const & n, names const & lparams, expr const & type, expr const & val, bool is_unsafe, names const & all);
150
150
opaque_val (opaque_val const & other):object_ref(other) {}
151
- opaque_val (opaque_val && other):object_ref(other) {}
151
+ opaque_val (opaque_val && other):object_ref(std::move( other) ) {}
152
152
opaque_val & operator =(opaque_val const & other) { object_ref::operator =(other); return *this ; }
153
- opaque_val & operator =(opaque_val && other) { object_ref::operator =(other); return *this ; }
153
+ opaque_val & operator =(opaque_val && other) { object_ref::operator =(std::move ( other) ); return *this ; }
154
154
constant_val const & to_constant_val () const { return static_cast <constant_val const &>(cnstr_get_ref (*this , 0 )); }
155
155
name const & get_name () const { return to_constant_val ().get_name (); }
156
156
names const & get_lparams () const { return to_constant_val ().get_lparams (); }
@@ -179,9 +179,9 @@ class inductive_type : public object_ref {
179
179
public:
180
180
inductive_type (name const & id, expr const & type, constructors const & cnstrs);
181
181
inductive_type (inductive_type const & other):object_ref(other) {}
182
- inductive_type (inductive_type && other):object_ref(other) {}
182
+ inductive_type (inductive_type && other):object_ref(std::move( other) ) {}
183
183
inductive_type & operator =(inductive_type const & other) { object_ref::operator =(other); return *this ; }
184
- inductive_type & operator =(inductive_type && other) { object_ref::operator =(other); return *this ; }
184
+ inductive_type & operator =(inductive_type && other) { object_ref::operator =(std::move ( other) ); return *this ; }
185
185
name const & get_name () const { return static_cast <name const &>(cnstr_get_ref (*this , 0 )); }
186
186
expr const & get_type () const { return static_cast <expr const &>(cnstr_get_ref (*this , 1 )); }
187
187
constructors const & get_cnstrs () const { return static_cast <constructors const &>(cnstr_get_ref (*this , 2 )); }
@@ -205,15 +205,15 @@ class declaration : public object_ref {
205
205
public:
206
206
declaration ();
207
207
declaration (declaration const & other):object_ref(other) {}
208
- declaration (declaration && other):object_ref(other) {}
208
+ declaration (declaration && other):object_ref(std::move( other) ) {}
209
209
/* low-level constructors */
210
210
explicit declaration (object * o):object_ref(o) {}
211
211
explicit declaration (b_obj_arg o, bool b):object_ref(o, b) {}
212
212
explicit declaration (object_ref const & o):object_ref(o) {}
213
213
declaration_kind kind () const { return static_cast <declaration_kind>(obj_tag (raw ())); }
214
214
215
215
declaration & operator =(declaration const & other) { object_ref::operator =(other); return *this ; }
216
- declaration & operator =(declaration && other) { object_ref::operator =(other); return *this ; }
216
+ declaration & operator =(declaration && other) { object_ref::operator =(std::move ( other) ); return *this ; }
217
217
218
218
friend bool is_eqp (declaration const & d1, declaration const & d2) { return d1.raw () == d2.raw (); }
219
219
@@ -263,10 +263,10 @@ declaration mk_axiom_inferring_unsafe(environment const & env, name const & n,
263
263
class inductive_decl : public object_ref {
264
264
public:
265
265
inductive_decl (inductive_decl const & other):object_ref(other) {}
266
- inductive_decl (inductive_decl && other):object_ref(other) {}
266
+ inductive_decl (inductive_decl && other):object_ref(std::move( other) ) {}
267
267
inductive_decl (declaration const & d):object_ref(d) { lean_assert (d.is_inductive ()); }
268
268
inductive_decl & operator =(inductive_decl const & other) { object_ref::operator =(other); return *this ; }
269
- inductive_decl & operator =(inductive_decl && other) { object_ref::operator =(other); return *this ; }
269
+ inductive_decl & operator =(inductive_decl && other) { object_ref::operator =(std::move ( other) ); return *this ; }
270
270
names const & get_lparams () const { return static_cast <names const &>(cnstr_get_ref (raw (), 0 )); }
271
271
nat const & get_nparams () const { return static_cast <nat const &>(cnstr_get_ref (raw (), 1 )); }
272
272
inductive_types const & get_types () const { return static_cast <inductive_types const &>(cnstr_get_ref (raw (), 2 )); }
@@ -290,9 +290,9 @@ class inductive_val : public object_ref {
290
290
inductive_val (name const & n, names const & lparams, expr const & type, unsigned nparams,
291
291
unsigned nindices, names const & all, names const & cnstrs, unsigned nnested, bool is_rec, bool is_unsafe, bool is_reflexive);
292
292
inductive_val (inductive_val const & other):object_ref(other) {}
293
- inductive_val (inductive_val && other):object_ref(other) {}
293
+ inductive_val (inductive_val && other):object_ref(std::move( other) ) {}
294
294
inductive_val & operator =(inductive_val const & other) { object_ref::operator =(other); return *this ; }
295
- inductive_val & operator =(inductive_val && other) { object_ref::operator =(other); return *this ; }
295
+ inductive_val & operator =(inductive_val && other) { object_ref::operator =(std::move ( other) ); return *this ; }
296
296
constant_val const & to_constant_val () const { return static_cast <constant_val const &>(cnstr_get_ref (*this , 0 )); }
297
297
unsigned get_nparams () const { return static_cast <nat const &>(cnstr_get_ref (*this , 1 )).get_small_value (); }
298
298
unsigned get_nindices () const { return static_cast <nat const &>(cnstr_get_ref (*this , 2 )).get_small_value (); }
@@ -317,9 +317,9 @@ class constructor_val : public object_ref {
317
317
public:
318
318
constructor_val (name const & n, names const & lparams, expr const & type, name const & induct, unsigned cidx, unsigned nparams, unsigned nfields, bool is_unsafe);
319
319
constructor_val (constructor_val const & other):object_ref(other) {}
320
- constructor_val (constructor_val && other):object_ref(other) {}
320
+ constructor_val (constructor_val && other):object_ref(std::move( other) ) {}
321
321
constructor_val & operator =(constructor_val const & other) { object_ref::operator =(other); return *this ; }
322
- constructor_val & operator =(constructor_val && other) { object_ref::operator =(other); return *this ; }
322
+ constructor_val & operator =(constructor_val && other) { object_ref::operator =(std::move ( other) ); return *this ; }
323
323
constant_val const & to_constant_val () const { return static_cast <constant_val const &>(cnstr_get_ref (*this , 0 )); }
324
324
name const & get_induct () const { return static_cast <name const &>(cnstr_get_ref (*this , 1 )); }
325
325
unsigned get_cidx () const { return static_cast <nat const &>(cnstr_get_ref (*this , 2 )).get_small_value (); }
@@ -338,9 +338,9 @@ class recursor_rule : public object_ref {
338
338
public:
339
339
recursor_rule (name const & cnstr, unsigned nfields, expr const & rhs);
340
340
recursor_rule (recursor_rule const & other):object_ref(other) {}
341
- recursor_rule (recursor_rule && other):object_ref(other) {}
341
+ recursor_rule (recursor_rule && other):object_ref(std::move( other) ) {}
342
342
recursor_rule & operator =(recursor_rule const & other) { object_ref::operator =(other); return *this ; }
343
- recursor_rule & operator =(recursor_rule && other) { object_ref::operator =(other); return *this ; }
343
+ recursor_rule & operator =(recursor_rule && other) { object_ref::operator =(std::move ( other) ); return *this ; }
344
344
name const & get_cnstr () const { return static_cast <name const &>(cnstr_get_ref (*this , 0 )); }
345
345
unsigned get_nfields () const { return static_cast <nat const &>(cnstr_get_ref (*this , 1 )).get_small_value (); }
346
346
expr const & get_rhs () const { return static_cast <expr const &>(cnstr_get_ref (*this , 2 )); }
@@ -365,9 +365,9 @@ class recursor_val : public object_ref {
365
365
names const & all, unsigned nparams, unsigned nindices, unsigned nmotives,
366
366
unsigned nminors, recursor_rules const & rules, bool k, bool is_unsafe);
367
367
recursor_val (recursor_val const & other):object_ref(other) {}
368
- recursor_val (recursor_val && other):object_ref(other) {}
368
+ recursor_val (recursor_val && other):object_ref(std::move( other) ) {}
369
369
recursor_val & operator =(recursor_val const & other) { object_ref::operator =(other); return *this ; }
370
- recursor_val & operator =(recursor_val && other) { object_ref::operator =(other); return *this ; }
370
+ recursor_val & operator =(recursor_val && other) { object_ref::operator =(std::move ( other) ); return *this ; }
371
371
constant_val const & to_constant_val () const { return static_cast <constant_val const &>(cnstr_get_ref (*this , 0 )); }
372
372
name const & get_name () const { return to_constant_val ().get_name (); }
373
373
name const & get_induct () const { return get_name ().get_prefix (); }
@@ -398,9 +398,9 @@ class quot_val : public object_ref {
398
398
public:
399
399
quot_val (name const & n, names const & lparams, expr const & type, quot_kind k);
400
400
quot_val (quot_val const & other):object_ref(other) {}
401
- quot_val (quot_val && other):object_ref(other) {}
401
+ quot_val (quot_val && other):object_ref(std::move( other) ) {}
402
402
quot_val & operator =(quot_val const & other) { object_ref::operator =(other); return *this ; }
403
- quot_val & operator =(quot_val && other) { object_ref::operator =(other); return *this ; }
403
+ quot_val & operator =(quot_val && other) { object_ref::operator =(std::move ( other) ); return *this ; }
404
404
constant_val const & to_constant_val () const { return static_cast <constant_val const &>(cnstr_get_ref (*this , 0 )); }
405
405
name const & get_name () const { return to_constant_val ().get_name (); }
406
406
names const & get_lparams () const { return to_constant_val ().get_lparams (); }
@@ -434,14 +434,14 @@ class constant_info : public object_ref {
434
434
constant_info (constructor_val const & v);
435
435
constant_info (recursor_val const & v);
436
436
constant_info (constant_info const & other):object_ref(other) {}
437
- constant_info (constant_info && other):object_ref(other) {}
437
+ constant_info (constant_info && other):object_ref(std::move( other) ) {}
438
438
explicit constant_info (b_obj_arg o, bool b):object_ref(o, b) {}
439
439
explicit constant_info (obj_arg o):object_ref(o) {}
440
440
441
441
constant_info_kind kind () const { return static_cast <constant_info_kind>(cnstr_tag (raw ())); }
442
442
443
443
constant_info & operator =(constant_info const & other) { object_ref::operator =(other); return *this ; }
444
- constant_info & operator =(constant_info && other) { object_ref::operator =(other); return *this ; }
444
+ constant_info & operator =(constant_info && other) { object_ref::operator =(std::move ( other) ); return *this ; }
445
445
446
446
friend bool is_eqp (constant_info const & d1, constant_info const & d2) { return d1.raw () == d2.raw (); }
447
447
0 commit comments