Skip to content

Commit

Permalink
Fixed weird compilation error of std::isspace
Browse files Browse the repository at this point in the history
  • Loading branch information
EnergyCube committed Nov 16, 2022
1 parent b0a9297 commit 0328d07
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions EEStats/EEStats/Library.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#include <thread>
#include <queue>
#include <process.h>

unsigned int __stdcall PingThread(void* data)
{
Expand Down
4 changes: 2 additions & 2 deletions EEStats/EEStats/Utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ static std::wstring getCurrentHandleFileName()
}

static void trim(std::string& s) {
s.erase(s.begin(), std::find_if_not(s.begin(), s.end(), [](char c) { return std::isspace(c); }));
s.erase(std::find_if_not(s.rbegin(), s.rend(), [](char c) { return std::isspace(c); }).base(), s.end());
s.erase(s.begin(), std::find_if_not(s.begin(), s.end(), [](char c) { return std::isspace(c, std::locale::classic()); }));
s.erase(std::find_if_not(s.rbegin(), s.rend(), [](char c) { return std::isspace(c, std::locale::classic()); }).base(), s.end());
}

static void replaceAll(std::string& str, const std::string& from, const std::string& to) {
Expand Down
1 change: 1 addition & 0 deletions EEStats/EEStats/WmiHelper.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#pragma once
#include <vector>
#include <string>
#include <unordered_map>
#include <Wbemidl.h>
#include <atlcomcli.h>
Expand Down

0 comments on commit 0328d07

Please sign in to comment.