mirror of
https://github.com/Neargye/magic_enum.git
synced 2026-01-10 23:44:29 +00:00
fix clang with msvc
This commit is contained in:
parent
b828fe16f5
commit
8f1d0ba39f
1 changed files with 2 additions and 2 deletions
|
|
@ -211,7 +211,7 @@ constexpr string_view pretty_name(string_view name) noexcept {
|
|||
}
|
||||
|
||||
constexpr std::size_t find(string_view str, char c) noexcept {
|
||||
#if defined(__clang__) && __clang_major__ < 9 && defined(__GLIBCXX__) || defined(_MSC_VER) && _MSC_VER < 1920
|
||||
#if defined(__clang__) && __clang_major__ < 9 && defined(__GLIBCXX__) || defined(_MSC_VER) && _MSC_VER < 1920 && !defined(__clang__)
|
||||
// https://stackoverflow.com/questions/56484834/constexpr-stdstring-viewfind-last-of-doesnt-work-on-clang-8-with-libstdc
|
||||
// https://developercommunity.visualstudio.com/content/problem/360432/vs20178-regression-c-failed-in-test.html
|
||||
constexpr auto workaroung = true;
|
||||
|
|
@ -233,7 +233,7 @@ constexpr std::size_t find(string_view str, char c) noexcept {
|
|||
|
||||
template <typename BinaryPredicate>
|
||||
constexpr bool cmp_equal(string_view lhs, string_view rhs, BinaryPredicate&& p) noexcept(std::is_nothrow_invocable_r_v<bool, BinaryPredicate, char, char>) {
|
||||
#if defined(_MSC_VER) && _MSC_VER < 1920
|
||||
#if defined(_MSC_VER) && _MSC_VER < 1920 && !defined(__clang__)
|
||||
// https://developercommunity.visualstudio.com/content/problem/360432/vs20178-regression-c-failed-in-test.html
|
||||
// https://developercommunity.visualstudio.com/content/problem/232218/c-constexpr-string-view.html
|
||||
constexpr auto workaroung = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue