Skip to content

Commit d90c7dd

Browse files
committed
fix MSVC breakage
1 parent 3f165ab commit d90c7dd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

bench/fullsort/BM_fullsort.vxsort.h

+4
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,11 @@ void register_type(i64 s, SortPattern p) {
184184
if constexpr (U >= 2) {
185185
register_type<M, U / 2, T>(s, p);
186186
}
187+
#ifdef VXSORT_COMPILER_MSVC
188+
auto realname = typeid(T).name();
189+
#else
187190
auto realname = abi::__cxa_demangle(typeid(T).name(), nullptr, nullptr, nullptr);
191+
#endif
188192
auto bench_name = fmt::format("BM_vxsort_pattern<{}, {}, {}>/{}/{}", realname, U, s,
189193
magic_enum::enum_name(M), magic_enum::enum_name(p));
190194
::benchmark::RegisterBenchmark(bench_name.c_str(), BM_vxsort_pattern<T, M, U>, s, p)

0 commit comments

Comments
 (0)