[libcxx-commits] [PATCH] D111892: [SystemZ][z/OS] Raise assertion error when using unimplemented functions

Muiez Ahmed via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Fri Oct 15 13:08:14 PDT 2021


muiez updated this revision to Diff 380089.
muiez added a comment.

Cause compile time error instead.


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

https://reviews.llvm.org/D111892

Files:
  libcxx/include/filesystem


Index: libcxx/include/filesystem
===================================================================
--- libcxx/include/filesystem
+++ libcxx/include/filesystem
@@ -969,10 +969,10 @@
 #if !defined(_LIBCPP_HAS_NO_LOCALIZATION)
   // TODO Implement locale conversions.
   template <class _Source, class = _EnableIfPathable<_Source, void> >
-  path(const _Source& __src, const locale& __loc, format = format::auto_format);
+  path(const _Source& __src, const locale& __loc, format = format::auto_format) = delete;
   template <class _InputIt>
   path(_InputIt __first, _InputIt _last, const locale& __loc,
-       format = format::auto_format);
+       format = format::auto_format) = delete;
 #endif
 
   _LIBCPP_INLINE_VISIBILITY


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D111892.380089.patch
Type: text/x-patch
Size: 729 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20211015/2a213283/attachment.bin>


More information about the libcxx-commits mailing list