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-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-11-30 17:01:52 +00: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-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
2023-01-16 13:00:18 +01:00
2018-09-29 22:19:44 +02:00
2023-11-28 18:02:57 -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-08-01 17:25:25 -05:00
2023-01-16 13:00:18 +01:00
2023-10-02 01:38:10 +01:00
2023-10-28 03:14:05 -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-10-25 21:35:43 -04:00
2023-12-10 22:08:05 +01:00
2023-01-16 13:00:18 +01:00
2023-07-01 07:12:53 -05: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-07-01 07:12:53 -05:00
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-01-16 13:00:18 +01:00
2023-01-16 13:00:18 +01:00
2023-07-03 13:34:39 +02:00
2023-02-12 13:00:53 -06:00
2023-01-16 13:00:18 +01:00
2023-03-17 18:45:35 -05:00
2023-01-16 13:00:18 +01:00
2023-10-21 18:37:12 -05:00
2023-01-16 13:00:18 +01:00
2023-01-16 13:00:18 +01:00