Skip to content

Commit 521f3a2

Browse files
authored
fix: add this (#175)
Reproduced the error by check out omer-add-save-load-check in VecSim and run make unit_test, added this one line fix in deps/ScalableVectorSearchby, no need for another shared lib
1 parent 466f3f8 commit 521f3a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/svs/lib/misc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ template <typename... Fs> class Lazy : public Fs... {
343343
using Fs::operator()...;
344344
};
345345

346-
#define SVS_LAZY(expr) svs::lib::Lazy([=]() { return expr; })
346+
#define SVS_LAZY(expr) svs::lib::Lazy([&]() { return expr; })
347347

348348
template <typename T> inline constexpr bool is_lazy = false;
349349
template <typename... Fs> inline constexpr bool is_lazy<Lazy<Fs...>> = true;

0 commit comments

Comments
 (0)