-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Made scan a new format callable #2062
base: main
Are you sure you want to change the base?
Conversation
8b89205
to
14eabbd
Compare
I need some help with the documentation on this one |
b45f973
to
dafef07
Compare
b9d7223
to
f5db326
Compare
include/eve/concept/generator.hpp
Outdated
//! @groupheader{Examples} | ||
//! - `eve::one` | ||
//! - `eve::one_t` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I undrestand where you coming from but this is not a helpful doc.
eve::one is what people should be using. one_t is almost never used.
@jfalcou help me here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I asked @SadiinsoSnowfall to change it as technically the concept works on type not value.
We can change it back no problem.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I updated the documentation, let me know
include/eve/concept/substitute.hpp
Outdated
//! `eve::as_value` on a value of the first type. | ||
//================================================================================================ | ||
template<typename S, typename Target> | ||
concept substitute_for = generator_for<S, Target> || ((arithmetic_value<S> || relaxed_logical_value<S>) && requires(S s) { Target{s}; }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
requires(S s) { Target{s}; }
That's constructible
. I'm not sure if we want convertible
or constructible
though.
Why arithmetic || relaxed logical? That is value, no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
value doesn't include bool
and we don't have(/want?) relaxed_value
. I guess I could do value<S> || std::same_as<S, bool>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be fixed
No description provided.