Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

about 5 years ago

Language

Compiler

Options

Author

anonymous

about 5 years ago

$
prog.cc:29:18: error: no matching function for call to object of type 'std::__1::reference_wrapper<const y_combinator<(lambda at prog.cc:27:18)> >'
      return 1 + g(a + 1);
                 ^
prog.cc:12:16: note: in instantiation of function template specialization 'main()::(anonymous class)::operator()<std::__1::reference_wrapper<const y_combinator<(lambda at prog.cc:27:18)> > >' requested here
        return f(std::ref(*this), std::forward<Args>(args)...);
               ^
prog.cc:30:7: note: in instantiation of function template specialization 'y_combinator<(lambda at prog.cc:27:18)>::operator()<int>' requested here
    }}(1);
      ^
/opt/wandbox/clang-10.0.0/include/c++/v1/__functional_base:400:5: note: candidate template ignored: substitution failure [with _ArgTypes = <int>]: no type named 'type' in 'std::__1::__invoke_of<const y_combinator<(lambda at prog.cc:27:18)> &, int>'
    operator() (_ArgTypes&&... __args) const {
    ^
1 error generated.
Exit Code:
1