summaryrefslogtreecommitdiff
path: root/include/fud_format.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/fud_format.hpp')
-rw-r--r--include/fud_format.hpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/fud_format.hpp b/include/fud_format.hpp
index 0dff3c1..4536d69 100644
--- a/include/fud_format.hpp
+++ b/include/fud_format.hpp
@@ -1396,8 +1396,7 @@ FormatResult format(Sink& sink, FormatCharMode formatMode, const FormatSpec& for
template <typename Sink>
FormatResult format(Sink& sink, FormatCharMode formatMode, const FormatSpec& formatSpec, const utf8* arg)
{
- // NOLINTNEXTLINE(cppcoreguidelines-pro-type-reinterpret-cast)
- return format(sink, formatMode, formatSpec, reinterpret_cast<const char*>(arg));
+ return format(sink, formatMode, formatSpec, std::bit_cast<const char*>(arg));
}
template <typename Sink>
@@ -1493,8 +1492,7 @@ FormatResult format(Sink& sink, FormatCharMode formatMode, const FormatSpec& for
return DrainResult{0, FudStatus::FormatInvalid};
}
pointerFormatSpec.alternateForm = true;
- // NOLINTNEXTLINE(cppcoreguidelines-pro-type-reinterpret-cast)
- return impl::formatIntegral(sink, formatMode, pointerFormatSpec, reinterpret_cast<uintptr_t>(arg));
+ return impl::formatIntegral(sink, formatMode, pointerFormatSpec, std::bit_cast<uintptr_t>(arg));
}
template <typename Sink>