Skip to content

Commit 7944ee3

Browse files
committed
🐛 Remove extraneous lambda capture in CX_WRAP
Problem: - `CX_WRAP` contains a capture clause that inhibits its use in non-local contexts. Solution: - Remove the capture clause.
1 parent 9d65d90 commit 7944ee3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/stdx/utility.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ auto cx_detect(auto f) {
379379

380380
#ifndef CX_WRAP
381381
#define CX_WRAP(...) \
382-
[&]([[maybe_unused]] auto f) { \
382+
[]([[maybe_unused]] auto f) { \
383383
STDX_PRAGMA(diagnostic push) \
384384
STDX_PRAGMA(diagnostic ignored "-Wold-style-cast") \
385385
if constexpr (STDX_IS_TYPE(__VA_ARGS__)) { \

0 commit comments

Comments
 (0)