Skip to content

Commit

Permalink
Experiment: remove builtin-type optimization on apple-clang
Browse files Browse the repository at this point in the history
  • Loading branch information
eliaskosunen committed May 22, 2024
1 parent b38bc53 commit 11ff58c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/scn/scan.h
Original file line number Diff line number Diff line change
Expand Up @@ -5149,9 +5149,12 @@ constexpr scan_arg_store_kind determine_arg_store_kind()
if (sizeof...(Args) > max_packed_args) {
return scan_arg_store_kind::unpacked;
}
#if !(SCN_CLANG && SCN_APPLE)
// This doesn't work on Apple Clang. I don't know why
if (all_types_builtin<CharT, Args...>()) {
return scan_arg_store_kind::builtin;
}
#endif
return scan_arg_store_kind::packed;
}

Expand Down

0 comments on commit 11ff58c

Please sign in to comment.