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

Error while compiling in MSVC #6

Open
VadimIzmalkov opened this issue Apr 10, 2018 · 3 comments
Open

Error while compiling in MSVC #6

VadimIzmalkov opened this issue Apr 10, 2018 · 3 comments
Assignees
Labels

Comments

@VadimIzmalkov
Copy link

2>c:\projects\memory-allocation\src\benchmark.cpp(34): error C2131: expression did not evaluate to a constant
2>c:\projects\memory-allocation\src\benchmark.cpp(34): note: failure was caused by a read of a variable outside its lifetime
2>c:\projects\memory-allocation\src\benchmark.cpp(34): note: see usage of 'this'
2>c:\projects\memory-allocation\src\benchmark.cpp(40): warning C4018: '<': signed/unsigned mismatch

Seems this problem similar to this one https://stackoverflow.com/questions/33423502/expression-did-not-evaluate-to-a-constant-c?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa

@mtrebi
Copy link
Owner

mtrebi commented Apr 26, 2018

I'll take a look. Currently I don't have internet at home...Thanks for the report!

@mtrebi mtrebi self-assigned this Apr 26, 2018
@mtrebi mtrebi added the bug label Apr 26, 2018
@jflopezfernandez
Copy link
Contributor

I'm getting the same mistake

@jflopezfernandez
Copy link
Contributor

I just submitted a pull request fixing this error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants