We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3d9a680 commit afa9c5eCopy full SHA for afa9c5e
include/boost/openmethod/core.hpp
@@ -1925,7 +1925,7 @@ struct init_bad_call {
1925
static auto fn(bad_call& error, const Arg& arg, const Args&... args) {
1926
if constexpr (Index == 0u) {
1927
error.method = Rtti::template static_type<Method>();
1928
- error.arity = sizeof...(args);
+ error.arity = sizeof...(args) + 1;
1929
}
1930
1931
type_id arg_type_id;
@@ -1957,8 +1957,8 @@ using method_base = std::conditional_t<
1957
1958
template<typename T, class Registry>
1959
struct parameter_traits {
1960
- static auto peek(const T&) {
1961
- return nullptr;
+ static auto peek(const T& value) -> const T&{
+ return value;
1962
1963
1964
template<typename>
0 commit comments