File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
src/solvers/smt2_incremental/ast Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 24
24
25
25
#define SORT_ID (the_id ) \
26
26
template <> \
27
- optionalt<smt_##the_id##_sortt> smt_sortt::cast<smt_##the_id##_sortt>() && \
27
+ std::optional<smt_##the_id##_sortt> smt_sortt::cast<smt_##the_id##_sortt>() \
28
+ && \
28
29
{ \
29
30
if (id () == ID_smt_##the_id##_sort) \
30
31
return {std::move (*static_cast <const smt_##the_id##_sortt *>(this ))}; \
Original file line number Diff line number Diff line change 8
8
#define CPROVER_SOLVERS_SMT2_INCREMENTAL_SMT_SORTS_H
9
9
10
10
#include < util/irep.h>
11
- #include < util/optional.h>
12
11
12
+ #include < optional>
13
13
#include < type_traits>
14
14
15
15
class smt_sort_const_downcast_visitort ;
@@ -47,7 +47,7 @@ class smt_sortt : protected irept
47
47
const sub_classt *cast () const &;
48
48
49
49
template <typename sub_classt>
50
- optionalt <sub_classt> cast () &&;
50
+ std::optional <sub_classt> cast () &&;
51
51
52
52
protected:
53
53
using irept::irept;
You can’t perform that action at this time.
0 commit comments