[libcxx-commits] [PATCH] D93283: [libcxx] Remove ifdefs in the message to static_assert. NFC.

Martin Storsjö via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Mon Dec 14 23:20:19 PST 2020


mstorsjo created this revision.
mstorsjo added a reviewer: libc++.
mstorsjo requested review of this revision.
Herald added a project: libc++.
Herald added 1 blocking reviewer(s): libc++.

As suggested in D91137 <https://reviews.llvm.org/D91137>.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D93283

Files:
  libcxx/include/filesystem


Index: libcxx/include/filesystem
===================================================================
--- libcxx/include/filesystem
+++ libcxx/include/filesystem
@@ -1236,11 +1236,7 @@
 #endif
       is_same<typename __is_pathable<_Source>::__char_type, char>::value,
       "u8path(Source const&) requires Source have a character type of type "
-      "'char'"
-#ifndef _LIBCPP_NO_HAS_CHAR8_T
-      " or 'char8_t'"
-#endif
-      );
+      "'char' or 'char8_t'");
   return path(__s);
 }
 
@@ -1254,10 +1250,7 @@
 #endif
       is_same<typename __is_pathable<_InputIt>::__char_type, char>::value,
       "u8path(Iter, Iter) requires Iter have a value_type of type 'char'"
-#ifndef _LIBCPP_NO_HAS_CHAR8_T
-      " or 'char8_t'"
-#endif
-      );
+      " or 'char8_t'");
   return path(__f, __l);
 }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D93283.311801.patch
Type: text/x-patch
Size: 802 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20201215/1ff51d36/attachment.bin>


More information about the libcxx-commits mailing list