Skip to content

Commit

Permalink
extra_arg: avoid error with msvc
Browse files Browse the repository at this point in the history
  • Loading branch information
melven committed Jan 13, 2024
1 parent be8d13b commit f629b91
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion include/jlcxx/attr.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<decltype(argi)>;
process_attribute<T>::init(std::forward<T>(argi), f);
Expand Down

0 comments on commit f629b91

Please sign in to comment.