Skip to content

Commit

Permalink
msvc constexpr fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ftk committed Apr 16, 2022
1 parent 3742bf6 commit 95db90d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quickjspp.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1915,7 +1915,7 @@ struct js_traits<std::function<R(Args...)>, int>
{
static auto unwrap(JSContext * ctx, JSValueConst fun_obj)
{
const int argc = sizeof...(Args);
constexpr int argc = sizeof...(Args);
if constexpr(argc == 0)
{
return [jsfun_obj = Value{ctx, JS_DupValue(ctx, fun_obj)}]() -> R {
Expand Down

0 comments on commit 95db90d

Please sign in to comment.