mirror of
https://github.com/fastfloat/fast_float.git
synced 2026-09-14 14:42:26 +08:00
cleanup
This commit is contained in:
parent
37d25dd546
commit
deada1436d
@ -303,7 +303,8 @@ namespace fast_float {
|
||||
using std::bit_cast;
|
||||
#else
|
||||
template <typename To, typename From, FASTFLOAT_ENABLE_IF(sizeof(To) == sizeof(From))>
|
||||
FASTFLOAT_CONSTEXPR20 auto bit_cast(const From &from) -> To {
|
||||
fastfloat_really_inline FASTFLOAT_CONSTEXPR20 auto bit_cast(const From &from)
|
||||
-> To noexcept {
|
||||
// Implementation of std::bit_cast for pre-C++20.
|
||||
auto to = To();
|
||||
// The cast suppresses a bogus -Wclass-memaccess on GCC.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user