Skip to content

Commit

Permalink
Disable static_assert in CNL_ASSERT_EQ
Browse files Browse the repository at this point in the history
  • Loading branch information
John McFarlane committed Feb 1, 2022
1 parent a55d5ba commit dc9f12d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion include/cnl/_impl/charconv/to_chars.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ namespace cnl {
}

using native_rounding_type = set_rounding_t<decltype(value), native_rounding_tag>;
auto const& native_rounding_value = static_cast<native_rounding_type>(value);
auto const& native_rounding_value = static_cast<native_rounding_type const&>(value);

return _impl::to_chars_non_zero<native_rounding_type>(
first, last, native_rounding_value, base);
Expand Down
1 change: 0 additions & 1 deletion test/framework/test.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

// NOLINTNEXTLINE(cppcoreguidelines-macro-usage)
#define CNL_ASSERT_EQ(a, b) \
static_assert(identical(a, b)); \
ASSERT_EQ(a, b);

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

0 comments on commit dc9f12d

Please sign in to comment.