Output same exception messages for both Linux and Windows (#395)
Co-authored-by: Nigel Stewart <nigel.stewart@emesent.io>
This commit is contained in:
parent
120205ac5a
commit
16cc254919
@ -337,13 +337,8 @@ empty(const std::string& s)
|
|||||||
namespace cxxopts {
|
namespace cxxopts {
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
#ifdef _WIN32
|
|
||||||
CXXOPTS_LINKONCE_CONST std::string LQUOTE("\'");
|
CXXOPTS_LINKONCE_CONST std::string LQUOTE("\'");
|
||||||
CXXOPTS_LINKONCE_CONST std::string RQUOTE("\'");
|
CXXOPTS_LINKONCE_CONST std::string RQUOTE("\'");
|
||||||
#else
|
|
||||||
CXXOPTS_LINKONCE_CONST std::string LQUOTE("‘");
|
|
||||||
CXXOPTS_LINKONCE_CONST std::string RQUOTE("’");
|
|
||||||
#endif
|
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
||||||
// GNU GCC with -Weffc++ will issue a warning regarding the upcoming class, we
|
// GNU GCC with -Weffc++ will issue a warning regarding the upcoming class, we
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user