I suspect some ASSERTION code is having side effects. I’d like to switch off ASSERT without making any other changes to how my code is compiled. I’m using MSVS2008. Switching from debug to release won’t do as that will alter how memory is initialised.
Share
Put this at the top of your header files after the inclusions of
cassert(or a include that includescassert)Which redefines the assert marco so that it expands to nothing.