Skip to content

Commit 03e1e14

Browse files
committed
Improved API of scalar_to_variable
1 parent b61e898 commit 03e1e14

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/solver_impl.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@
88
namespace cps {
99

1010

11-
static inline void scalar_to_variable(Scalar const s, Variable& var)
11+
static inline Variable& scalar_to_variable(Scalar const s, Variable& var)
1212
{
1313
var.value.u64 = 0ULL;
1414
var.visit( [s]<typename T>(T&& x) { x = cast<std::decay_t<T> >(s); });
15+
return var;
1516
}
1617

1718

0 commit comments

Comments
 (0)