From a17776cb5fbdc6daabd692ead7f544b2016ca083 Mon Sep 17 00:00:00 2001 From: Patrick Niklaus Date: Fri, 19 Jun 2015 17:48:27 +0200 Subject: [PATCH] Check if FingerPrint is trivial. TODO: Add this for all other data that is going to be serialized --- util/fingerprint.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/util/fingerprint.hpp b/util/fingerprint.hpp index 5b64ed648..3894fc80f 100644 --- a/util/fingerprint.hpp +++ b/util/fingerprint.hpp @@ -29,6 +29,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #define FINGERPRINT_H #include +#include // implements a singleton, i.e. there is one and only one conviguration object class FingerPrint @@ -52,6 +53,10 @@ class FingerPrint // initialize to {6ba7b810-9dad-11d1-80b4-00c04fd430c8} boost::uuids::uuid named_uuid; bool has_64_bits; + }; +static_assert(std::is_trivial::value, "FingerPrint needs to be trivial."); + + #endif /* FingerPrint_H */