Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3bfc9c6

Browse files
committed
fix compilation on old msvc versions
1 parenta6bd162 commit3bfc9c6

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

‎rapidfuzz/details/config.hpp‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,17 @@
55

66
#if ((defined(_MSVC_LANG) && _MSVC_LANG >= 201703L) || __cplusplus >= 201703L)
77
#defineRAPIDFUZZ_DEDUCTION_GUIDES
8+
#endif
9+
10+
/* older versions of msvc have bugs in their if constexpr support
11+
* see https://github.com/rapidfuzz/rapidfuzz-cpp/issues/122
12+
* since we don't know the exact version this was fixed in, use the earliest we could test
13+
*/
14+
#if defined(_MSC_VER) && _MSC_VER < 1920
15+
#defineRAPIDFUZZ_IF_CONSTEXPR_AVAILABLE0
16+
#defineRAPIDFUZZ_IF_CONSTEXPRif
17+
#elif ((defined(_MSVC_LANG) && _MSVC_LANG >= 201703L) || __cplusplus >= 201703L)
18+
#defineRAPIDFUZZ_DEDUCTION_GUIDES
819
#defineRAPIDFUZZ_IF_CONSTEXPR_AVAILABLE1
920
#defineRAPIDFUZZ_IF_CONSTEXPRifconstexpr
1021
#else

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp