They do look quite scary until you understand machinery behind it. Actually I was bit surprised that macros which I have found can be used for C++ "reflection" - this thing I was looking for quite long. However, I suspect that "double field" versus "double field[3]" - arrays might bring much more complexity into story.
Managed to make mcserver fully functional on vs2012. make_unique and some lua call functions were missing double reference pointer usage, also I have compiled under 64 bit windows - switched back to 32-bit.
Posted whole header file to stack overflow: http://stackoverflow.com/questions/41453...pplication
Release build of mcserver hangs vs2012 linker, so I suspect that some of optimizations might be to heavy for vs2012 to eat them. It's not first time I come across such problems.
Anyway - vs2012 port is just for my learning experience, won't push it to git.
Now I can dig up deeper into code.
Managed to make mcserver fully functional on vs2012. make_unique and some lua call functions were missing double reference pointer usage, also I have compiled under 64 bit windows - switched back to 32-bit.
Posted whole header file to stack overflow: http://stackoverflow.com/questions/41453...pplication
Release build of mcserver hangs vs2012 linker, so I suspect that some of optimizations might be to heavy for vs2012 to eat them. It's not first time I come across such problems.
Anyway - vs2012 port is just for my learning experience, won't push it to git.
Now I can dig up deeper into code.