Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/jarro2783/cxxopts.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author66maer <505670805@qq.com>2022-09-08 00:33:31 +0300
committerGitHub <noreply@github.com>2022-09-08 00:33:31 +0300
commitf7cf84bd56b47728e4674f316d274b3d82a1cfb3 (patch)
treee8a52a8ea333578c61579a94ac1f3be17f2eca2f
parentab1dc0f68454982cb0d7d65872235bab25514d3e (diff)
Fix std::isblank assertion error in Visual Studio Chinese Debug (#365)
-rw-r--r--include/cxxopts.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/cxxopts.hpp b/include/cxxopts.hpp
index 76dcc1a..ee02c57 100644
--- a/include/cxxopts.hpp
+++ b/include/cxxopts.hpp
@@ -2090,12 +2090,12 @@ format_description
{
appendNewLine = false;
- if (std::isblank(*previous))
+ if (std::isblank(*previous, std::locale::classic()))
{
lastSpace = current;
}
- if (!std::isblank(*current))
+ if (!std::isblank(*current, std::locale::classic()))
{
onlyWhiteSpace = false;
}