mirror of
https://github.com/fastfloat/fast_float.git
synced 2026-02-11 04:39:54 +08:00
noexcept
This commit is contained in:
parent
5c6a6c2742
commit
8f49511980
@ -39,8 +39,10 @@ typedef uint_fast16_t am_digits;
|
|||||||
// The number of bits in the limb.
|
// The number of bits in the limb.
|
||||||
typedef uint_fast8_t limb_t;
|
typedef uint_fast8_t limb_t;
|
||||||
|
|
||||||
|
// Type for enum chars_format.
|
||||||
typedef uint_fast8_t chars_format_t;
|
typedef uint_fast8_t chars_format_t;
|
||||||
|
|
||||||
|
// Type for base.
|
||||||
typedef uint_fast8_t base_t;
|
typedef uint_fast8_t base_t;
|
||||||
|
|
||||||
enum class chars_format : chars_format_t;
|
enum class chars_format : chars_format_t;
|
||||||
@ -105,7 +107,7 @@ using parse_options = parse_options_t<char>;
|
|||||||
|
|
||||||
namespace fast_float {
|
namespace fast_float {
|
||||||
template <typename To, typename From>
|
template <typename To, typename From>
|
||||||
FASTFLOAT_CONSTEXPR20 To bit_cast(const From &from) {
|
FASTFLOAT_CONSTEXPR20 To bit_cast(const From &from) noexcept {
|
||||||
#if FASTFLOAT_HAS_BIT_CAST
|
#if FASTFLOAT_HAS_BIT_CAST
|
||||||
return std::bit_cast<To>(from);
|
return std::bit_cast<To>(from);
|
||||||
#else
|
#else
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user