[libcxx-commits] [PATCH] D119894: [libc++] Add `explicit` to a bunch of private detail ctors.

Mark de Wever via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Mon Feb 21 10:51:48 PST 2022


Mordante accepted this revision as: Mordante.
Mordante added a comment.

LGTM!



================
Comment at: libcxx/include/__debug:156
 
-    __libcpp_db();
+    explicit __libcpp_db();
 public:
----------------
Just curious, but is there a good reason to make a default constructor explicit?


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

https://reviews.llvm.org/D119894



More information about the libcxx-commits mailing list