Fix compilation error with clang++

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
Leonardo de Moura 2013-07-24 00:50:58 -07:00
parent 4b61639f4d
commit 1398c927cd
2 changed files with 3 additions and 3 deletions

View file

@ -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;

View file

@ -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) {