Skip to content

Commit 8f49511

Browse files
committed
noexcept
1 parent 5c6a6c2 commit 8f49511

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

include/fast_float/float_common.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,10 @@ typedef uint_fast16_t am_digits;
3939
// The number of bits in the limb.
4040
typedef uint_fast8_t limb_t;
4141

42+
// Type for enum chars_format.
4243
typedef uint_fast8_t chars_format_t;
4344

45+
// Type for base.
4446
typedef uint_fast8_t base_t;
4547

4648
enum class chars_format : chars_format_t;
@@ -105,7 +107,7 @@ using parse_options = parse_options_t<char>;
105107

106108
namespace fast_float {
107109
template <typename To, typename From>
108-
FASTFLOAT_CONSTEXPR20 To bit_cast(const From &from) {
110+
FASTFLOAT_CONSTEXPR20 To bit_cast(const From &from) noexcept {
109111
#if FASTFLOAT_HAS_BIT_CAST
110112
return std::bit_cast<To>(from);
111113
#else

0 commit comments

Comments
 (0)