call _invalid_parameter_noinfo

Is there some way to prevent std::vector generating the subject calls?

Crawling around in the headers, it looks like they are (may be?) produced conditionally upon the definition of one, the other, or both of two #defines:

_SECURE_SCL
_HAS_ITERATOR_DEBUGGING

But I've tried undefing both, before and after the inclusion of <vector>, but the calls to _invalid_parameter_noinfo persist in being generated?

Thanks, Buk.
Turns out that setting

#define _SECURE_SCL 0
#define _HAS_ITERATOR_DEBUGGING 0

works, but only if you add it before *every* c++ std header file, including those like:

<cassert>
<cstdlib>
<cstdio>

which you wouldn't think were in any way involved with debugging iterators.

Last edited on
Topic archived. No new replies allowed.