Giter Site home page Giter Site logo

Comments (5)

jfalcou avatar jfalcou commented on June 14, 2024 1

I'll close this once fix/apply-over is merged

from eve.

jfalcou avatar jfalcou commented on June 14, 2024

It now returns an arror saying that max(x) returns a lambda while we want a vlaue.

The issue is that we can't have a concept for random callable with unspecified type.
Maybe using !eve::value is enough ?

from eve.

jfalcou avatar jfalcou commented on June 14, 2024

On fix/apply-over, the error is :

<source>:8:12: error: no matching function for call to object of type 'const max_t<eve::options<>>'
    return eve::max(x-8);
           ^~~~~~~~
/home/falcou/dev/eve/include/eve/module/core/regular/max.hpp:30:5: note: candidate template ignored: substitution failure [with Tup = wide<float, fixed<8>>]: constraints not satisfied for alias template 'apply_traits_t' [with Traits = eve::common_value, Tuple = eve::wide<float, eve::fixed<8>>]
    operator()(Tup const & t) const noexcept  requires(kumi::size_v<Tup> >= 2) { return EVE_DISPATCH_CALL(t); }
    ^
/home/falcou/dev/eve/include/eve/module/core/regular/max.hpp:34:36: note: candidate template ignored: constraints not satisfied [with Callable = wide<float, fixed<8>>]
    EVE_FORCEINLINE constexpr auto operator()(Callable const & f) const noexcept { return EVE_DISPATCH_CALL(f); }
                                   ^
/home/falcou/dev/eve/include/eve/module/core/regular/max.hpp:33:47: note: because '!eve::ordered_value<eve::wide<float, eve::fixed<8> > >' evaluated to false
    requires(!kumi::product_type<Callable> && !eve::ordered_value<Callable>)
                                              ^
/home/falcou/dev/eve/include/eve/module/core/regular/max.hpp:20:52: note: candidate function template not viable: requires 2 arguments, but 1 was provided
    EVE_FORCEINLINE constexpr common_value_t<T, U> operator()(T t, U u) const noexcept { return EVE_DISPATCH_CALL(t, u); }
                                                   ^
/home/falcou/dev/eve/include/eve/module/core/regular/max.hpp:23:61: note: candidate function template not viable: requires at least 2 arguments, but 1 was provided
    EVE_FORCEINLINE constexpr common_value_t<T0, T1, Ts...> operator()(T0 t0, T1 t1, Ts...ts) const noexcept
                                                            ^
1 error generated.

So it basically list all the possible operator() and explains wjy.
Is it enough @DenisYaroshevskiy ?

from eve.

DenisYaroshevskiy avatar DenisYaroshevskiy commented on June 14, 2024

I think yeah, lgtm

from eve.

jfalcou avatar jfalcou commented on June 14, 2024

Fixed in 20b383f

from eve.

Related Issues (20)

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.