Commit fb79b50
CoinTime: replace C++17 inline variable with C++11 static local
coinWallclockStart was declared as an inline variable (C++17), causing
build failures on MSVC when compiled without /std:c++17:
CoinTime.hpp(94): error C7525: inline variables require at least '/std:c++17'
Replace with a static local variable inside CoinWallclockTime(), which
is guaranteed to be initialised exactly once and thread-safely under
C++11, without requiring any build-system changes.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent ce084a4 commit fb79b50
1 file changed
+5
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
97 | 94 | | |
98 | 95 | | |
99 | | - | |
| 96 | + | |
| 97 | + | |
100 | 98 | | |
101 | 99 | | |
102 | 100 | | |
| |||
0 commit comments