Quantcast
Channel: Intel® Software - Intel® C++ Compiler
Viewing all articles
Browse latest Browse all 1175

Intel C++ 17 vector destructor exception

$
0
0

Using the Intel C++ 17.0 compiler in Visual Studio 2015 I'm getting an access violation exception in std::vector destructor (or its clear method) when running in debug mode. It only seems to occur when the vector has been iterated over and does not occur when compiled with either the Intel C++ 16.0 compiler or the MSVC 140 compiler.

Here is a Gist that will cause the exception to be raised. Unfortunately it only seems to raise the exception when compiled as x86 but the larger code base I originally came across this in also raises it when compiled as x64.

https://gist.github.com/tredpath/5f762151c1595246cd21c4503bded3ea


Viewing all articles
Browse latest Browse all 1175

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>