[libcxx-commits] [libcxx] [libc++][format] LWG4106: `basic_format_args` should not be default-constructible (PR #97250)

Mark de Wever via libcxx-commits libcxx-commits at lists.llvm.org
Thu Jul 4 08:50:39 PDT 2024


================
@@ -82,11 +82,6 @@ void test_string_view(From value) {
 template <class CharT>
 void test() {
   using Context = std::basic_format_context<CharT*, CharT>;
-  {
-    const std::basic_format_args<Context> format_args{};
-    ASSERT_NOEXCEPT(format_args.get(0));
-    assert(!format_args.get(0));
-  }
 
   using char_type = typename Context::char_type;
----------------
mordante wrote:

Let's remove the blank line since it looks odd now.
```suggestion
  using char_type = typename Context::char_type;
```

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


More information about the libcxx-commits mailing list