[libcxx-commits] [libcxx] [libc++][format] Discard contents since null-terminator in character arrays in formatting (PR #116571)
Mark de Wever via libcxx-commits
libcxx-commits at lists.llvm.org
Sun Feb 2 05:39:50 PST 2025
================
@@ -32,6 +33,12 @@ _LIBCPP_BEGIN_NAMESPACE_STD
namespace __format {
+template <class _Arr, class _Elem>
+inline constexpr bool __is_bounded_array_of = false;
+
+template <class _Elem, size_t _Len>
+inline constexpr bool __is_bounded_array_of<_Elem[_Len], _Elem> = true;
+
----------------
mordante wrote:
Are these really useful? They are only used twice.
https://github.com/llvm/llvm-project/pull/116571
More information about the libcxx-commits
mailing list