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.
This commit is contained in:
Martchus 2023-01-26 22:23:12 +01:00
parent d4fbe5f43d
commit 38fa3512fd
1 changed files with 1 additions and 1 deletions

View File

@ -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) {