Giter VIP home page Giter VIP logo

kitten's People

Contributors

rvarago avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

barracuda156

kitten's Issues

error: no type named 'type' in 'std::enable_if<false>' and other errors with Clang on macOS

With my fixes in #33 kitten builds fine for me with GCC12, however it fails on buildbots with new macOS and Clang:

In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/c++/v1/__functional/weak_result_type.h:16:
  /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/c++/v1/type_traits:550:78: error: no type named 'type' in 'std::enable_if<false>'; 'enable_if' cannot be used to disable this declaration
  template <bool _Bp, class _Tp = void> using enable_if_t = typename enable_if<_Bp, _Tp>::type;
                                                                               ^~~
In file included from /opt/local/var/macports/build/_Users_runner_work_macports-ports_macports-ports_ports_math_kitten/kitten/work/kitten-f45705bc3026551c702b05281cee940b51511dc1/include/kitten/instances/sequence_container.h:10:
  /opt/local/var/macports/build/_Users_runner_work_macports-ports_macports-ports_ports_math_kitten/kitten/work/kitten-f45705bc3026551c702b05281cee940b51511dc1/include/kitten/functor.h:58:44: error: no matching function for call to 'fmap'
      return [f](auto const &input) { return functor<F>::fmap(input, f); };
                                             ^~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_Users_runner_work_macports-ports_macports-ports_ports_math_kitten/kitten/work/kitten-f45705bc3026551c702b05281cee940b51511dc1/tests/sequence_container_test.cpp:74:111: error: expected expression
                              is_same_after_decaying<decltype(empty_of_strings), SequenceContainer<std::string>>);
                                                                                                                ^
  /opt/local/var/macports/build/_Users_runner_work_macports-ports_macports-ports_ports_math_kitten/kitten/work/kitten-f45705bc3026551c702b05281cee940b51511dc1/tests/sequence_container_test.cpp:86:59: error: no matching function for call to object of type '(lambda at /opt/local/var/macports/build/_Users_runner_work_macports-ports_macports-ports_ports_math_kitten/kitten/work/kitten-f45705bc3026551c702b05281cee940b51511dc1/include/kitten/functor.h:58:12)'
                          auto const container_of_strings = to_string_lifted(container_of_ints);
                                                            ^~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_Users_runner_work_macports-ports_macports-ports_ports_math_kitten/kitten/work/kitten-f45705bc3026551c702b05281cee940b51511dc1/tests/sequence_container_test.cpp:89:115: error: expected expression
                              is_same_after_decaying<decltype(container_of_strings), SequenceContainer<std::string>>);
                                                                                                                    ^
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/c++/v1/__functional/weak_result_type.h:16:
  /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/c++/v1/type_traits:550:78: error: no type named 'type' in 'std::enable_if<false>'; 'enable_if' cannot be used to disable this declaration
  template <bool _Bp, class _Tp = void> using enable_if_t = typename enable_if<_Bp, _Tp>::type;
                                                                               ^~~
In file included from /opt/local/var/macports/build/_Users_runner_work_macports-ports_macports-ports_ports_math_kitten/kitten/work/kitten-f45705bc3026551c702b05281cee940b51511dc1/include/kitten/instances/sequence_container.h:9:
  /opt/local/var/macports/build/_Users_runner_work_macports-ports_macports-ports_ports_math_kitten/kitten/work/kitten-f45705bc3026551c702b05281cee940b51511dc1/include/kitten/applicative.h:37:12: error: no matching function for call to 'pure'
      return applicative<AP>::pure(std::forward<A>(value));
             ^~~~~~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_Users_runner_work_macports-ports_macports-ports_ports_math_kitten/kitten/work/kitten-f45705bc3026551c702b05281cee940b51511dc1/tests/sequence_container_test.cpp:106:110: error: expected expression
                      static_assert(is_same_after_decaying<decltype(singleton), SequenceContainer<std::string>>);
                                                                                                               ^
  In file included from /opt/local/var/macports/build/_Users_runner_work_macports-ports_macports-ports_ports_math_kitten/kitten/work/kitten-f45705bc3026551c702b05281cee940b51511dc1/tests/sequence_container_test.cpp:6:
  In file included from /opt/local/var/macports/build/_Users_runner_work_macports-ports_macports-ports_ports_math_kitten/kitten/work/kitten-f45705bc3026551c702b05281cee940b51511dc1/include/kitten/instances/sequence_container.h:9:
  /opt/local/var/macports/build/_Users_runner_work_macports-ports_macports-ports_ports_math_kitten/kitten/work/kitten-f45705bc3026551c702b05281cee940b51511dc1/include/kitten/applicative.h:53:12: error: no matching function for call to 'combine'
      return applicative<AP>::combine(first, second, f);
             ^~~~~~~~~~~~~~~~~~~~~~~~

Full log: https://github.com/macports/macports-ports/actions/runs/3840184033/jobs/6538924802

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.