Skip to content

Commit 545463e

Browse files
committed
rework trace
1 parent 1cfbbb4 commit 545463e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

include/boost/openmethod/core.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1914,7 +1914,7 @@ using overrider_virtual_types = boost::mp11::mp_remove<
19141914
void>;
19151915

19161916
template<class Method, class Rtti, std::size_t Index>
1917-
struct init_call_error {
1917+
struct init_bad_call {
19181918
template<typename Arg, typename... Args>
19191919
static auto fn(bad_call& error, const Arg& arg, const Args&... args) {
19201920
if constexpr (Index == 0u) {
@@ -1932,15 +1932,15 @@ struct init_call_error {
19321932

19331933
error.types[Index] = arg_type_id;
19341934

1935-
init_call_error<Method, Rtti, Index + 1>::fn(error, args...);
1935+
init_bad_call<Method, Rtti, Index + 1>::fn(error, args...);
19361936
}
19371937

19381938
static auto fn(bad_call&) {
19391939
}
19401940
};
19411941

19421942
template<class Method, class Rtti>
1943-
struct init_call_error<Method, Rtti, bad_call::max_types> {
1943+
struct init_bad_call<Method, Rtti, bad_call::max_types> {
19441944
static auto fn(bad_call&) {
19451945
}
19461946
};
@@ -2539,7 +2539,7 @@ method<Id, ReturnType(Parameters...), Registry>::fn_not_implemented(
25392539

25402540
if constexpr (Registry::has_error_handler) {
25412541
no_overrider error;
2542-
detail::init_call_error<method, rtti, 0u>::fn(
2542+
detail::init_bad_call<method, rtti, 0u>::fn(
25432543
error,
25442544
detail::parameter_traits<Parameters, Registry>::peek(args)...);
25452545
Registry::error_handler::error(error);
@@ -2557,7 +2557,7 @@ method<Id, ReturnType(Parameters...), Registry>::fn_ambiguous(
25572557

25582558
if constexpr (Registry::has_error_handler) {
25592559
ambiguous_call error;
2560-
detail::init_call_error<method, rtti, 0u>::fn(
2560+
detail::init_bad_call<method, rtti, 0u>::fn(
25612561
error,
25622562
detail::parameter_traits<Parameters, Registry>::peek(args)...);
25632563
Registry::error_handler::error(error);

include/boost/openmethod/initialize.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ struct registry<Policies...>::compiler : detail::generic_compiler {
410410

411411
std::unordered_map<type_index_type, class_*> class_map;
412412

413-
using Registry = registry<Policies...>;
413+
using Registry = registry;
414414

415415
compiler();
416416

0 commit comments

Comments
 (0)