[try Beta version]
Not logged in

 
call _invalid_parameter_noinfo

Jun 6, 2016 at 10:50pm
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.
Jun 7, 2016 at 8:58am
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 Jun 7, 2016 at 8:58am
Topic archived. No new replies allowed.