[libc++][format] Improve Add basic_format_parse_context.

Add an additional guard to prevent building on older clang versions.

This should fix the build of https://buildkite.com/mlir/mlir-core
This commit is contained in:
Mark de Wever 2021-02-11 18:52:47 +01:00
parent 0dc6122dd3
commit af83e89ae3

View File

@ -79,7 +79,7 @@ _LIBCPP_BEGIN_NAMESPACE_STD
// If the compiler has no concepts support, the format header will be disabled.
// Without concepts support enable_if needs to be used and that too much effort
// to support compilers with partial C++20 support.
#ifndef _LIBCPP_HAS_NO_CONCEPTS
#if !defined(_LIBCPP_HAS_NO_CONCEPTS) && !defined(_LIBCPP_HAS_NO_BUILTIN_IS_CONSTANT_EVALUATED)
class _LIBCPP_EXCEPTION_ABI format_error : public runtime_error {
public:
@ -172,7 +172,7 @@ private:
using format_parse_context = basic_format_parse_context<char>;
using wformat_parse_context = basic_format_parse_context<wchar_t>;
#endif //_LIBCPP_HAS_NO_CONCEPTS
#endif // !defined(_LIBCPP_HAS_NO_CONCEPTS) && !defined(_LIBCPP_HAS_NO_BUILTIN_IS_CONSTANT_EVALUATED)
#endif //_LIBCPP_STD_VER > 17
_LIBCPP_END_NAMESPACE_STD