From 38fa3512fdab016a9a075e26cf215d418e71832a Mon Sep 17 00:00:00 2001 From: Martchus Date: Thu, 26 Jan 2023 22:23:12 +0100 Subject: [PATCH] Disable assert for argument name for MSVC to avoid compilation error Not sure what MSVC complains about here exactly so let's just disable this code as it is only for debugging anyways. --- application/argumentparser.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/argumentparser.h b/application/argumentparser.h index 9e60b61..c703c4f 100644 --- a/application/argumentparser.h +++ b/application/argumentparser.h @@ -530,7 +530,7 @@ inline const char *Argument::name() const */ inline void Argument::setName(const char *name) { -#ifdef CPP_UTILITIES_DEBUG_BUILD +#if defined(CPP_UTILITIES_DEBUG_BUILD) && !defined(_MSC_VER) if (name && *name) { assert(*name != '-'); for (const char *c = name; *c; ++c) {