Skip to content

Commit

Permalink
Fix copilation with gcc9
Browse files Browse the repository at this point in the history
error: 'auto' not allowed in function prototype
  • Loading branch information
dimula73 committed Nov 22, 2022
1 parent b863b87 commit 596983f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lager/lenses.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ struct identity_functor
template <typename Part>
struct identity_functor_skip_first
{
auto operator() (auto&&) const {
template <typename T>
auto operator() (T&&) const {
return make_identity_functor(part);
}

Expand Down

0 comments on commit 596983f

Please sign in to comment.