We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9fd299 commit c878207Copy full SHA for c878207
src/solvers/smt2_incremental/smt_sorts.cpp
@@ -12,7 +12,7 @@
12
13
#define SORT_ID(the_id) \
14
template <> \
15
- const smt_##the_id##_sortt *smt_sortt::cast<smt_##the_id##_sortt>() const \
+ const smt_##the_id##_sortt *smt_sortt::cast<smt_##the_id##_sortt>() const & \
16
{ \
17
return id() == ID_smt_##the_id##_sort \
18
? static_cast<const smt_##the_id##_sortt *>(this) \
src/solvers/smt2_incremental/smt_sorts.h
@@ -44,7 +44,7 @@ class smt_sortt : protected irept
44
};
45
46
template <typename sub_classt>
47
- const sub_classt *cast() const;
+ const sub_classt *cast() const &;
48
49
50
optionalt<sub_classt> cast() &&;
0 commit comments