felixguendling / cista

Cista is a simple, high-performance, zero-copy C++ serialization & reflection library.
https://cista.rocks
MIT License
1.74k stars 110 forks source link

static type hash small fixes #192

Closed AdelKS closed 1 year ago

AdelKS commented 1 year ago

Hello!

Hope you are doing well, during some of my internal tests, I realized cista wasn't throwing when trying to deserialize a type T1 as a type T2, which were related but not the same: one contained many elements of the second, something like

struct T1
{
   int a;
}

struct T2
{
  T1 a,b,c,d,e,f;
}

and I found two things to fix, so here you go!

Adel

felixguendling commented 1 year ago

Thank you very much!