-
-
Notifications
You must be signed in to change notification settings - Fork 330
Improving quoted functions et al #1440
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
Conversation
* Support for static call operators (of lambdas and function objects) * Overloaded call operators are now picked by the explicitly specified signature. Note: This was partially done before at the point when creating the quoted function. It is now picked as well when calling the actual call operator.
The library requires C++17, so we could simply remove compiler options for older compilers.
dev/values_to_tuple.h
Outdated
#ifdef SQLITE_ORM_CONTRACTS_SUPPORTED | ||
contract_assert(nValues == std::tuple_size<Tpl>::value); | ||
#else | ||
(void)nValues; |
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.
nit: I'd use std::ignore
to make it more modern
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 don't know. I am not convinced this is the right usage of ignore
. It should only be used for ignoring results (of functions).
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.
well nobody prohibits doing it =)
9f38a1d
to
3251689
Compare
3251689
to
4351c9c
Compare
This PR improves the handling of scalar application-defined functions from quoted functions and those with a static call operator.
Additionally: