Commit f0a290e
committed
Use
With C++17's `if constexpr` feature we can now remove two alternate
function templates and just put the alternate implementations in line.
This puts the specialisation into the outer function, so that it is
specialised with the correct implementation for the given `functiont`,
rather than dispatching based on the `std::true_type` /
`std::false_type` overloads.if constexpr in smt_function_application_termt::indices
1 parent 3db3e49 commit f0a290e
1 file changed
+6
-19
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
| 156 | + | |
| 157 | + | |
174 | 158 | | |
175 | 159 | | |
176 | 160 | | |
177 | | - | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
178 | 165 | | |
179 | 166 | | |
180 | 167 | | |
| |||
0 commit comments