From f629b913040f5b1a26da4c4b64e6ef4351865505 Mon Sep 17 00:00:00 2001 From: Melven Roehrig-Zoellner Date: Sat, 13 Jan 2024 18:04:16 +0100 Subject: [PATCH] extra_arg: avoid error with msvc --- include/jlcxx/attr.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/jlcxx/attr.hpp b/include/jlcxx/attr.hpp index c42f7f6..173d090 100644 --- a/include/jlcxx/attr.hpp +++ b/include/jlcxx/attr.hpp @@ -147,7 +147,10 @@ namespace detail ExtraFunctionData result; // helper lambda - [[maybe_unused]] constexpr auto handleExtraArgs = [](ExtraFunctionData& f, auto argi) +#ifndef _MSC_VER + [[maybe_unused]] +#endif + constexpr auto handleExtraArgs = [](ExtraFunctionData& f, auto argi) { using T = typename std::decay_t; process_attribute::init(std::forward(argi), f);