We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13c88a4 commit 793ed7dCopy full SHA for 793ed7d
Sources/_TestingInternals/Versions.cpp
@@ -12,6 +12,7 @@
12
13
#include <algorithm>
14
#include <cctype>
15
+#include <iterator>
16
#include <mutex>
17
18
const char *swt_getTestingLibraryVersion(void) {
@@ -30,7 +31,7 @@ const char *swt_getTestingLibraryVersion(void) {
30
31
// Trim any trailing whitespace.
32
static std::once_flag once;
33
std::call_once(once, [] {
- auto i = std::find_if(std::begin(version), std::end(version), std::isspace);
34
+ auto i = std::find_if(std::begin(version), std::end(version), isspace);
35
if (i != std::end(version)) {
36
*i = '\0';
37
}
0 commit comments