tim42 / tools

A set of tools used in some of my projects
MIT License
3 stars 1 forks source link

nle struct serialize/deserialize #1

Open manuel76413 opened 1 year ago

manuel76413 commented 1 year ago

I try to test RLE library on the windows platform with msvc14.3 (vs2022), however not succeed, the template has something wrong?

manuel76413 commented 1 year ago

macro N_MEMBER_DEF(description) report error C2143,C2064, C2059, C2947...

tim42 commented 1 year ago

Heya. You have to enable C++23 support for the serialization code to compile. I don't have msvc to verify, but cppreference states that msvc19.2x (28 or 29) or higher is the one you want for proper support.

I don't really have a way to test on windows right now. If it does not work, you might try your luck with clang on windows (you should be able to keep msvc's linker but use clang as a way to generate your .obj or use the full clang stack).