On 2018-06-05 19:47, InfiniteDimensional wrote:
Thanks.
I'm having problems preventing void* pointers from not being serialized
..\..\..\orange\serialization\Serializer.d(975): Error: expression
`*value` is `void` and has no value
..\..\..\orange\serialization\Serializer.d(1491): Error: new can only
create structs, dynamic arrays or class objects, not `void`'s
and all I've added to my class is
@nonSerialized void* ptr;
It seems that the (de)serializer should just ignore all void's no matter
what. They can't be serialized to any meaningful thing. Maybe spit a
warning out if the uda is not added. Usually pointer values are not
meant to be serialized anyways.
Adding "@nonSerialized" did not help?
--
/Jacob Carlborg