[libcxx-commits] [PATCH] D123129: [libc++] Add tests for std::string default constructor and destructor

Nikolas Klauser via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Tue Apr 5 23:50:12 PDT 2022


philnik added inline comments.


================
Comment at: libcxx/test/std/strings/basic.string/string.cons/default.pass.cpp:40
+#if TEST_STD_VER > 17
+  // static_assert(test());
+#endif
----------------
var-const wrote:
> philnik wrote:
> > nilayvaish wrote:
> > > Why is this commented out? Same question for the other file as well.
> > `std::string` isn't constexpr yet. This will be uncommented when `std::string` is made constexpr (D110598 if you want to review it :P).
> Can you please add a TODO to uncomment this line once that patch lands? In general, I think we should always add a TODO or at least a comment when committing commented out code.
I think a TODO doesn't make a lot of sense here. This commented out line exists in almost every single file in `strings/basic.string`. It just makes it harder to remove all the residue mechanically.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D123129/new/

https://reviews.llvm.org/D123129



More information about the libcxx-commits mailing list