Comments (5)
I'll close this once fix/apply-over is merged
from eve.
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.
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.
I think yeah, lgtm
from eve.
Fixed in 20b383f
from eve.
Related Issues (20)
- [BUG] References Documentation link is broken HOT 1
- [BUG] Doxygen missing docs (highlighted) HOT 1
- [BUG] RETARGET(cpu_) equivalent for new callalbe apis HOT 2
- [BUG] fix werror in doc.exe HOT 2
- [BUG] Links in README are broken HOT 7
- [BUG] fix doc for relaxed range
- [BUG] eve::negate does not compile HOT 11
- [FEATURE] MSVC (unit.api.exe) for sse2
- Performance in DEBUG mode HOT 6
- [BUG] _mm256_cvtepu8_epi16 is missing
- [FEATURE] Add requires on multiple argument functions to ensure proper cardinal compatibility HOT 4
- [BENCH REPORT] Some stuff to investigate HOT 1
- Bazel support HOT 4
- [FEATURE] transform_copy_if and friends
- [FEATURE] SIMD-ed Heap HOT 6
- [BUG] CMake version variables not exported correctly HOT 2
- Split the largest unit tests HOT 3
- [FEATURE] Simplify as_register for better compiel time and extensibility
- sve and avx512 masked intrinsics and sve semi-scalar intrinsics HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eve.