jeffro256 9d101d5ea0
serialization: protect blob serialization from undefined behavior
There is currently no compiler protection when someone tries to
do (for example) `BLOB_SERIALIZER(std::vector<int>)`. You just
get runtime allocation errors. This has already eaten up dev time
before, so this PR adds a static assertion that the type must be
trivially copyable, as defined by the C++ standard. Types can
override this if applicable if they use `BLOB_SERIALIZER_FORCED`.
2024-03-10 14:15:48 -05:00
..
2023-01-16 13:00:18 +01:00
2023-01-16 13:00:18 +01:00
2023-01-16 13:00:18 +01:00
2023-01-16 13:00:18 +01:00
2023-01-16 13:00:18 +01:00
2023-01-16 13:00:18 +01:00
2023-01-16 13:00:18 +01:00
2023-01-16 13:00:18 +01:00
2023-01-16 13:00:18 +01:00
2023-01-16 13:00:18 +01:00
2023-11-06 09:24:37 -05:00
2023-01-16 13:00:18 +01:00
2023-01-16 13:00:18 +01:00
2023-01-16 13:00:18 +01:00
2023-01-16 13:00:18 +01:00
2023-05-22 13:36:05 -04:00
2023-01-16 13:00:18 +01:00
2023-01-16 13:00:18 +01:00
2023-01-16 13:00:18 +01:00
2023-01-16 13:00:18 +01:00
2023-01-16 13:00:18 +01:00
2023-01-16 13:00:18 +01:00
2018-09-29 22:19:44 +02:00
2023-01-16 13:00:18 +01:00
2023-01-16 13:00:18 +01:00
2023-01-16 13:00:18 +01:00
2023-01-16 13:00:18 +01:00
2023-01-16 13:00:18 +01:00
2023-01-16 13:00:18 +01:00
2023-01-16 13:00:18 +01:00
2023-01-16 13:00:18 +01:00
2023-01-16 13:00:18 +01:00
2023-01-16 13:00:18 +01:00
2023-10-25 21:35:43 -04:00
2023-01-16 13:00:18 +01:00
2023-04-25 11:26:20 -04:00
2023-01-16 13:00:18 +01:00
2023-01-16 13:00:18 +01:00
2023-01-16 13:00:18 +01:00
2023-01-16 13:00:18 +01:00
2023-01-16 13:00:18 +01:00
2023-01-16 13:00:18 +01:00
2023-01-16 13:00:18 +01:00
2023-01-16 13:00:18 +01:00
2023-01-16 13:00:18 +01:00
2023-01-16 13:00:18 +01:00
2023-01-16 13:00:18 +01:00
2023-01-16 13:00:18 +01:00
2023-01-16 13:00:18 +01:00
2023-01-16 13:00:18 +01:00
2023-01-16 13:00:18 +01:00
2023-01-16 13:00:18 +01:00
2023-01-16 13:00:18 +01:00
2023-01-16 13:00:18 +01:00
2023-01-16 13:00:18 +01:00
2023-01-16 13:00:18 +01:00
2023-01-16 13:00:18 +01:00
2023-01-16 13:00:18 +01:00