Skip to content

Commit e3e8ffb

Browse files
authored
Merge pull request #248 from elbeno/cx-fixes
🐛 Make `CX_VALUE` capture-free
2 parents b325dd5 + 2228ee7 commit e3e8ffb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/stdx/utility.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,14 +242,14 @@ template <typename T> constexpr auto is_ct_v<T const> = is_ct_v<T>;
242242
::stdx::cxv_detail::from_any( \
243243
__VA_ARGS__)>())::value) { \
244244
return ::stdx::overload{ \
245-
::stdx::cxv_detail::cx_base{}, [&] { \
245+
::stdx::cxv_detail::cx_base{}, [] { \
246246
return ::stdx::type_identity< \
247247
decltype(::stdx::cxv_detail::type_of< \
248248
::stdx::cxv_detail::from_any( \
249249
__VA_ARGS__)>())>{}; \
250250
}}; \
251251
} else { \
252-
return ::stdx::overload{::stdx::cxv_detail::cx_base{}, [&] { \
252+
return ::stdx::overload{::stdx::cxv_detail::cx_base{}, [] { \
253253
return (__VA_ARGS__) + \
254254
::stdx::cxv_detail::type_val{}; \
255255
}}; \

0 commit comments

Comments
 (0)