@@ -174,7 +174,8 @@ struct trace_sink_impl : trace_sink {
174174 str.data (), str.data () + str.size (),
175175 reinterpret_cast <std::uintptr_t >(value), 16 )
176176 .ptr ;
177- Registry::output::stream () << std::string_view (str.data (), end - str.data ());
177+ Registry::output::stream ()
178+ << std::string_view (str.data (), end - str.data ());
178179 }
179180 }
180181
@@ -627,8 +628,8 @@ auto operator<<(trace_stream& tr, const range<T>& range) -> trace_stream& {
627628// template) member functions of `generic_compiler`, so they are compiled once
628629// per translation unit regardless of how many registries it uses.
629630
630- inline void detail::generic_compiler::collect_transitive_bases (
631- class_* cls, class_* base) {
631+ inline void
632+ detail::generic_compiler::collect_transitive_bases ( class_* cls, class_* base) {
632633 if (base->mark == class_mark) {
633634 return ;
634635 }
@@ -718,8 +719,8 @@ inline void detail::generic_compiler::build_class_lattice() {
718719 }
719720}
720721
721- inline void detail::generic_compiler::calculate_transitive_derived (
722- class_& cls) {
722+ inline void
723+ detail::generic_compiler::calculate_transitive_derived ( class_& cls) {
723724 if (!cls.transitive_derived .empty ()) {
724725 return ;
725726 }
@@ -1384,8 +1385,9 @@ inline auto detail::generic_compiler::is_more_specific(
13841385 return result;
13851386}
13861387
1387- inline auto detail::generic_compiler::is_base (
1388- const overrider* a, const overrider* b) -> bool {
1388+ inline auto
1389+ detail::generic_compiler::is_base (const overrider* a, const overrider* b)
1390+ -> bool {
13891391 bool result = false ;
13901392
13911393 auto a_iter = a->vp .begin (), a_last = a->vp .end (), b_iter = b->vp .begin ();
@@ -1470,7 +1472,7 @@ struct registry<Policies...>::compiler : detail::generic_compiler {
14701472 void resolve_classes ();
14711473 void resolve_methods ();
14721474
1473- std::tuple<Options...> options;
1475+ std::tuple<std:: decay_t < Options> ...> options;
14741476
14751477 template <class Option >
14761478 static constexpr bool has_option =
@@ -1483,7 +1485,7 @@ struct registry<Policies...>::compiler : detail::generic_compiler {
14831485template <class ... Policies>
14841486template <class ... Options>
14851487registry<Policies...>::compiler<Options...>::compiler(Options... opts)
1486- : options(opts...) {
1488+ : options(std::forward<Options>( opts) ...) {
14871489 tr.sink = &sink_impl;
14881490 total_report = &report;
14891491 use_n2216 = has_n2216;
0 commit comments