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
This commit is contained in:
Muiez Ahmed 2021-10-20 13:55:50 -04:00
parent 00500d5bad
commit 6b82adbb49
1 changed files with 2 additions and 0 deletions

View File

@ -966,6 +966,7 @@ public:
_PathCVT<_ItVal>::__append_range(__pn_, __first, __last);
}
/*
#if !defined(_LIBCPP_HAS_NO_LOCALIZATION)
// TODO Implement locale conversions.
template <class _Source, class = _EnableIfPathable<_Source, void> >
@ -974,6 +975,7 @@ public:
path(_InputIt __first, _InputIt _last, const locale& __loc,
format = format::auto_format);
#endif
*/
_LIBCPP_INLINE_VISIBILITY
~path() = default;