Skip to content

Commit

Permalink
Fix all build issues with Visual Studio
Browse files Browse the repository at this point in the history
  • Loading branch information
Loki-Astari committed Jun 11, 2024
1 parent 1c3f64b commit 1591e26
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 8 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,10 @@ To install header only version

git clone --single-branch --branch header-only https://github.com/Loki-Astari/ThorsSerializer.git

## Version 2
## Building With Visual Studio

To build on windows you will need to add the flag: [`/Zc:preprocessor`](https://learn.microsoft.com/en-us/cpp/build/reference/zc-preprocessor?view=msvc-170). These libraries make heavy use of VAR_ARG macros to generate code for you so require conforming pre-processor. See [Macro Expansion of __VA_ARGS__ Bug in Visual Studio?](https://stackoverflow.com/questions/78605945/macro-expansion-of-va-args-bug-in-visual-studio) for details.

I have deprecated the `jsonImport()` and `jsonExport()` functions. These have been replaced with `jsonImporter()` and `jsonExporter()` functions (though the original versions still exist but are marked `[[deprecated]]`). The main difference is that the new functions catch exceptions (by default) this makes the serialization work like normal C++ serialization and simply set the bad bit on the stream.

## Contributors

Expand Down
2 changes: 1 addition & 1 deletion build
Submodule build updated 1 files
+2 −1 tools/Project.Makefile
2 changes: 1 addition & 1 deletion third/ThorsCrypto
Submodule ThorsCrypto updated 3 files
+1 −1 build
+1 −1 config.h.in
+1,152 −858 configure
2 changes: 1 addition & 1 deletion third/ThorsIOUtil
Submodule ThorsIOUtil updated 3 files
+1 −1 build
+1 −1 config.h.in
+1,111 −828 configure
2 changes: 1 addition & 1 deletion third/ThorsLogging
Submodule ThorsLogging updated 3 files
+1 −1 build
+2 −2 config.h.in
+1,121 −835 configure
2 changes: 1 addition & 1 deletion third/ThorsSocket
Submodule ThorsSocket updated 3 files
+1 −1 build
+1 −1 config.h.in
+1,156 −861 configure
2 changes: 1 addition & 1 deletion third/ThorsStorage
Submodule ThorsStorage updated 3 files
+1 −1 build
+1 −1 config.h.in
+1,145 −853 configure

0 comments on commit 1591e26

Please sign in to comment.