[libcxx-commits] [libcxx] [libc++] Implements Runtime format strings II. (PR #72543)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Tue Nov 21 10:48:21 PST 2023


================
@@ -350,6 +372,9 @@ struct _LIBCPP_TEMPLATE_VIS basic_format_string {
   _LIBCPP_HIDE_FROM_ABI constexpr basic_string_view<_CharT> get() const noexcept {
     return __str_;
   }
+#  if _LIBCPP_STD_VER >= 26
+  _LIBCPP_HIDE_FROM_ABI basic_format_string(__runtime_format_string<_CharT> __s) noexcept : __str_(__s.__str_) {}
+#  endif //_LIBCPP_STD_VER >= 26
----------------
ldionne wrote:

This `#endif` comment seems unnecessary since it's a really small block.

https://github.com/llvm/llvm-project/pull/72543


More information about the libcxx-commits mailing list