Skip to content

Commit 95f4aa4

Browse files
author
John McFarlane
committed
Disable static_assert in CNL_ASSERT_EQ
1 parent be7eacf commit 95f4aa4

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

include/cnl/_impl/charconv/to_chars.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ namespace cnl {
110110
}
111111

112112
using native_rounding_type = set_rounding_t<decltype(value), native_rounding_tag>;
113-
auto const& native_rounding_value = static_cast<native_rounding_type>(value);
113+
auto const& native_rounding_value = static_cast<native_rounding_type const&>(value);
114114

115115
return _impl::to_chars_non_zero<native_rounding_type>(
116116
first, last, native_rounding_value, base);

test/framework/test.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
// NOLINTNEXTLINE(cppcoreguidelines-macro-usage)
1818
#define CNL_ASSERT_EQ(a, b) \
19-
static_assert(identical(a, b)); \
2019
ASSERT_EQ(a, b);
2120

2221
// cnl::_impl::identical - compiles iff same type; returns true iff equal

0 commit comments

Comments
 (0)