Mark Santaniello

Results 7 comments of Mark Santaniello

Seems Clang-11 has some issue with memcpy not being constexpr. Trying to repro but for me clang 11 actually crashes...

OK got a repro. I was missing that I needed to use libc++. Will investigate.

Seems the problem is here: https://github.com/fmtlib/fmt/blob/master/include/fmt/format.h#L295-L305 I think Clang 11 supports -std=c++20, but the included libc++ doesn't have __cpp_lib_bit_cast, so we end up trying to use memcpy in a constexpr...

Maybe I can work around this by using __builtin_bit_cast

@phprus > You can enable Github Actions for your fmt fork Are you saying that there's a way to get all the same test workflows running on my fork?

Thanks. I'll have to figure do that if I make PRs in the future. The test matrix is pretty large. Anyway, it looks like the current version using __builtin_bit_cast is...

Ah, OK. Maybe I should figure out the workflows now then. I enabled "Actions" but I'm not sure how to clone the checks from here. And then I guess I'd...