Skip to content

Commit 0366133

Browse files
committed
fix: make std::span default detection work
1 parent 9198427 commit 0366133

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

include/mimic++/printing/TypePrinter.hpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@ namespace mimicpp::printing::detail
588588
// used for array, span and the like
589589
// should also handle c++26s inplace_vector
590590
// see: https://en.cppreference.com/w/cpp/container/inplace_vector
591-
template <template <typename, auto> typename Template, typename T, auto n>
591+
template <template <typename, auto...> typename Template, typename T, auto n>
592592
struct template_type_printer<Template<T, n>>
593593
: public basic_template_type_printer<
594594
decltype([]
@@ -611,8 +611,7 @@ namespace mimicpp::printing::detail
611611
return format::format(
612612
"{}<{}>",
613613
pretty_template_name<Template<T>>(),
614-
mimicpp::print_type<T>(),
615-
n);
614+
mimicpp::print_type<T>());
616615
})>
617616
{
618617
};

0 commit comments

Comments
 (0)