mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-18 00:38:31 +00:00
[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:
parent
0dc6122dd3
commit
af83e89ae3
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user