Skip to content

Commit

Permalink
explicitly delete pusher<Return (*)(Args..., ...)>::push
Browse files Browse the repository at this point in the history
  • Loading branch information
peacalm committed Jun 28, 2023
1 parent 9831398 commit 60d37f3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion include/peacalm/luaw.h
Original file line number Diff line number Diff line change
Expand Up @@ -2505,7 +2505,10 @@ struct luaw::pusher<Return (*)(Args...)> {
// variadic function, not supported
template <typename Return, typename... Args>
struct luaw::pusher<Return (*)(Args..., ...)> {
// write nothing to let compile fail
// to let compile fail

template <typename F>
static int push(luaw& l, F&& f) = delete;
};

// bool
Expand Down

0 comments on commit 60d37f3

Please sign in to comment.