From 7944ee314c5f144202b9e33f7aafdac36d5cbd88 Mon Sep 17 00:00:00 2001 From: Ben Deane Date: Wed, 11 Mar 2026 17:08:36 -0600 Subject: [PATCH] :bug: 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. --- include/stdx/utility.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/stdx/utility.hpp b/include/stdx/utility.hpp index 0b9dd43..12a72a6 100644 --- a/include/stdx/utility.hpp +++ b/include/stdx/utility.hpp @@ -379,7 +379,7 @@ auto cx_detect(auto f) { #ifndef CX_WRAP #define CX_WRAP(...) \ - [&]([[maybe_unused]] auto f) { \ + []([[maybe_unused]] auto f) { \ STDX_PRAGMA(diagnostic push) \ STDX_PRAGMA(diagnostic ignored "-Wold-style-cast") \ if constexpr (STDX_IS_TYPE(__VA_ARGS__)) { \