Fix compilation error with clang++
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
4b61639f4d
commit
1398c927cd
2 changed files with 3 additions and 3 deletions
|
@ -12,7 +12,7 @@ namespace lean {
|
|||
expr abstract(unsigned n, expr const * s, expr const & e) {
|
||||
lean_assert(std::all_of(s, s+n, closed));
|
||||
|
||||
auto f = [=](expr const & e, unsigned offset) {
|
||||
auto f = [=](expr const & e, unsigned offset) -> expr {
|
||||
unsigned i = n;
|
||||
while (i > 0) {
|
||||
--i;
|
||||
|
@ -27,7 +27,7 @@ expr abstract(unsigned n, expr const * s, expr const & e) {
|
|||
expr abstract_p(unsigned n, expr const * s, expr const & e) {
|
||||
lean_assert(std::all_of(s, s+n, closed));
|
||||
|
||||
auto f = [=](expr const & e, unsigned offset) {
|
||||
auto f = [=](expr const & e, unsigned offset) -> expr {
|
||||
unsigned i = n;
|
||||
while (i > 0) {
|
||||
--i;
|
||||
|
|
|
@ -12,7 +12,7 @@ namespace lean {
|
|||
expr instantiate(unsigned n, expr const * s, expr const & e) {
|
||||
lean_assert(std::all_of(s, s+n, closed));
|
||||
|
||||
auto f = [=](expr const & e, unsigned offset) {
|
||||
auto f = [=](expr const & e, unsigned offset) -> expr {
|
||||
if (is_var(e)) {
|
||||
unsigned vidx = var_idx(e);
|
||||
if (vidx >= offset) {
|
||||
|
|
Loading…
Reference in a new issue