Skip to content

Commit c878207

Browse files
committed
Attempt to fix visual studio build error
1 parent d9fd299 commit c878207

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/solvers/smt2_incremental/smt_sorts.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
#define SORT_ID(the_id) \
1414
template <> \
15-
const smt_##the_id##_sortt *smt_sortt::cast<smt_##the_id##_sortt>() const \
15+
const smt_##the_id##_sortt *smt_sortt::cast<smt_##the_id##_sortt>() const & \
1616
{ \
1717
return id() == ID_smt_##the_id##_sort \
1818
? static_cast<const smt_##the_id##_sortt *>(this) \

src/solvers/smt2_incremental/smt_sorts.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class smt_sortt : protected irept
4444
};
4545

4646
template <typename sub_classt>
47-
const sub_classt *cast() const;
47+
const sub_classt *cast() const &;
4848

4949
template <typename sub_classt>
5050
optionalt<sub_classt> cast() &&;

0 commit comments

Comments
 (0)