Xcode – std::pair<> behaves different on debug and release builds
I have a piece of code that returns an std::pair<> structure as below and it behaves differently on my debug and release builds std::pair<bool, const MyData&>: Works well in debug build, doesn’t work on release build (I get corrupted data)…