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:
parent
d4fbe5f43d
commit
38fa3512fd
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue