I have a C++ struct like this:
struct node
{
string splitOn;
st
You shouldn't do this:
struct node
{
string splitOn;
string label;
bool isLeaf;
vector childrenValues;
vector children;
};
Possible problems:
The STL does not guarantee binary compatibility on most of its types: i.e. std::string
or std::vector
.
SGX's implementation of the STL is just a modified/reduced subset of it.
You may face problems related to memory alignment.
You should implement custom serialization for this instead.