Skip to content

Commit

Permalink
Avoid generic lambdas
Browse files Browse the repository at this point in the history
This lowers required C++ standard from 14 to 11
  • Loading branch information
theHamsta committed Apr 24, 2021
1 parent 2e33ffa commit 9931c25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scanner.cc
Expand Up @@ -85,7 +85,7 @@ template<class A, class B, class C> function<C(A)> operator*(C (&f)(B), function
return [=](A a) { return f(g(a)); };
}

template<class A, class B> function<B(A)> const_(B b) { return [=](auto _) { return b; }; }
template<class A, class B> function<B(A)> const_(B b) { return [=](A _) { return b; }; }

// --------------------------------------------------------------------------------------------------------
// Symbols
Expand Down

0 comments on commit 9931c25

Please sign in to comment.