- copied constexpr declarations plus a few fixed in utility code and fixed a few places where this triggered a compile error now.

This commit is contained in:
Christoph Oelckers 2020-09-27 08:36:30 +02:00
commit db895b43b2
9 changed files with 49 additions and 28 deletions

View file

@ -1527,6 +1527,16 @@ public:
{
memset(&bytes[0], on ? -1 : 0, sizeof(bytes));
}
// These are for utilities that need access to the raw storage. The serializer needs this to do its work, for example.
uint8_t* Storage()
{
return bytes;
}
unsigned StorageSize() const
{
return sizeof(bytes);
}
};
// A wrapper to externally stored data.