From 6b82adbb4980593f4661edf94e5539adfe1a9f4e Mon Sep 17 00:00:00 2001 From: Muiez Ahmed Date: Wed, 20 Oct 2021 13:55:50 -0400 Subject: [PATCH] Raise compile error when using unimplemented functions The path functions in this patch are unimplemented (as per the TODO comment from upstream). To avoid running into a linker error (missing symbol), this patch raises a compile error by commenting out the functions, which is more user friendly. Differential Revision: https://reviews.llvm.org/D111892 --- libcxx/include/filesystem | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libcxx/include/filesystem b/libcxx/include/filesystem index 1fd77af99cc4..f99976f6cd7b 100644 --- a/libcxx/include/filesystem +++ b/libcxx/include/filesystem @@ -966,6 +966,7 @@ public: _PathCVT<_ItVal>::__append_range(__pn_, __first, __last); } +/* #if !defined(_LIBCPP_HAS_NO_LOCALIZATION) // TODO Implement locale conversions. template > @@ -974,6 +975,7 @@ public: path(_InputIt __first, _InputIt _last, const locale& __loc, format = format::auto_format); #endif +*/ _LIBCPP_INLINE_VISIBILITY ~path() = default;