Check if FingerPrint is trivial. TODO: Add this for all other data that is going to be serialized
This commit is contained in:
parent
94b749ab00
commit
a17776cb5f
@ -29,6 +29,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
#define FINGERPRINT_H
|
#define FINGERPRINT_H
|
||||||
|
|
||||||
#include <boost/uuid/uuid.hpp>
|
#include <boost/uuid/uuid.hpp>
|
||||||
|
#include <type_traits>
|
||||||
|
|
||||||
// implements a singleton, i.e. there is one and only one conviguration object
|
// implements a singleton, i.e. there is one and only one conviguration object
|
||||||
class FingerPrint
|
class FingerPrint
|
||||||
@ -52,6 +53,10 @@ class FingerPrint
|
|||||||
// initialize to {6ba7b810-9dad-11d1-80b4-00c04fd430c8}
|
// initialize to {6ba7b810-9dad-11d1-80b4-00c04fd430c8}
|
||||||
boost::uuids::uuid named_uuid;
|
boost::uuids::uuid named_uuid;
|
||||||
bool has_64_bits;
|
bool has_64_bits;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static_assert(std::is_trivial<FingerPrint>::value, "FingerPrint needs to be trivial.");
|
||||||
|
|
||||||
|
|
||||||
#endif /* FingerPrint_H */
|
#endif /* FingerPrint_H */
|
||||||
|
Loading…
Reference in New Issue
Block a user