vector
vector copied to clipboard
MSVC and pointer arithmetic
Hey Peter. Thank you for this implementation! So far I encountered only one problem, not a big deal actually, but MSVC is not happy with pointer arithmetic and throws some errors during compilation:
vector.c(375): error C2036: void * vector.c(380): error C2036: void * vector.c(415): error C2036: void * vector.c(435): error C2036: void * vector.c(439): error C2036: void *const vector.c(473): error C2036: void * vector.c(488): error C2036: void *
I fixed this with an explicit cast and just want to let you know that such a problem occurs.
Thanks for reporting this! Do you think you could send a pull request with your fixes? I'd be happy to merge it.
2020 Sep 03 -- this is still a problem ... for CL. If using clang (as packaged with VS 2019) this is not a problem.