Skip to content

Commit

Permalink
Add missing && to _bound_sink
Browse files Browse the repository at this point in the history
Fixes #221.
  • Loading branch information
NelsonEloi authored and foonathan committed Jan 7, 2025
1 parent a8ebb7c commit ebd90ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
* Fix bug where `lexy_ext::report_error` unconditionally wrote to `stderr`, ignoring the output iterator.
* Fix bug with missing `lexy::error_context::position` in `lexy::parse_as_tree` (#184).
* Fix `static_assert` in `lexy::parse_tree` (#190).
* Add missing `&&` in `lexy::bind_sink` (#221).
* Workaround compiler bugs and improve documentation.

== Release 2022.12.1
Expand Down
2 changes: 1 addition & 1 deletion include/lexy/callback/bind.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ struct _bound_sink
LEXY_EMPTY_MEMBER _detail::tuple<BoundArgs...> _bound;

template <typename... Args>
constexpr auto operator()(Args... args) const -> decltype(_sink(LEXY_FWD(args)...))
constexpr auto operator()(Args&&... args) const -> decltype(_sink(LEXY_FWD(args)...))
{
return _sink(LEXY_FWD(args)...);
}
Expand Down

0 comments on commit ebd90ae

Please sign in to comment.