mtrebi / memory-allocators

Custom memory allocators in C++ to improve the performance of dynamic memory allocation
MIT License
1.72k stars 158 forks source link

Error while compiling in MSVC #6

Open VadimIzmalkov opened 6 years ago

VadimIzmalkov commented 6 years ago

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 commented 6 years ago

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

jflopezfernandez commented 5 years ago

I'm getting the same mistake

jflopezfernandez commented 5 years ago

I just submitted a pull request fixing this error