Use _LIBCPP_NO_HAS_CHAR8_T to test if template should be specialized.
- Group Reviewers
- rGb526d8761895: [libc++] Add std::hash<char8_t> specialization if char8_t is enabled
I think test (due to being a library client) should continue checking the flag defined by the standard __cpp_lib_char8_t.
I have fixed it to check the value of the macro,
Since the test is libc++-specific (it's in the test/libcxx hierarchy, as opposed to test/std), it *could* use _LIBCPP_NO_HAS_CHAR8_T. However, this is fine.