memory-allocators icon indicating copy to clipboard operation
memory-allocators copied to clipboard

Error while compiling in MSVC

Open VadimIzmalkov opened this issue 7 years ago • 3 comments

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

VadimIzmalkov avatar Apr 10 '18 21:04 VadimIzmalkov

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

mtrebi avatar Apr 26 '18 10:04 mtrebi

I'm getting the same mistake

jflopezfernandez avatar Nov 07 '18 00:11 jflopezfernandez

I just submitted a pull request fixing this error

jflopezfernandez avatar Nov 07 '18 03:11 jflopezfernandez