Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debug Assertion Fail #198

Open
lihanwei opened this issue Jan 20, 2019 · 0 comments
Open

Debug Assertion Fail #198

lihanwei opened this issue Jan 20, 2019 · 0 comments

Comments

@lihanwei
Copy link

Hi,
I rewrite the sample code shown as below in the debug mode, but it cause a runtime library fail which is not appeared in release mode. I just change the sigma into a vector and it can not run in debug mode.

int main(int argc, char *argv[]) { int dim = 10; std::vector<double> x0(dim,10.0); std::vector<double> sigma(dim, 0.1); CMAParameters<> cmaparams = CMAParameters<>(x0, sigma); CMASolutions cmasols = cmaes<>(fsphere,cmaparams); return cmasols.run_status(); }

Can anyone tell me what's the problem is?

The error message is shown as below:

Debug Assertion Failed!
Program: C:\WINDOWS\SYSTEM32\MSVCP120D.dll
File:C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\vector
Line: 72
Expression:vector iterator not dereferencable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant